summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHema Prathaban <hemaklnce@gmail.com>2013-05-17 11:14:56 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-17 15:05:07 -0700
commit3523a90ed9e245a1bc27b9f8b44128887a641b43 (patch)
tree93a0b903490f32fdde8436958a0f89c67d588484
parent72381a1732d11ff6d63598618fb13e2155823497 (diff)
staging: vt6655: Use alloc_etherdev() for kzalloc
Use alloc_etherdev() for kzalloc Signed-off-by: Hema Prathaban <hemaklnce@gmail.com> Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6655/hostap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/hostap.c b/drivers/staging/vt6655/hostap.c
index 579220b418b7..46f097d0c841 100644
--- a/drivers/staging/vt6655/hostap.c
+++ b/drivers/staging/vt6655/hostap.c
@@ -80,7 +80,7 @@ static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked)
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: Enabling hostapd mode\n", dev->name);
- pDevice->apdev = kzalloc(sizeof(struct net_device), GFP_KERNEL);
+ pDevice->apdev = alloc_etherdev(sizeof(*apdev_priv));
if (pDevice->apdev == NULL)
return -ENOMEM;