staging: vt6655: Use alloc_etherdev() for kzalloc
authorHema Prathaban <hemaklnce@gmail.com>
Fri, 17 May 2013 05:44:56 +0000 (11:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 22:05:07 +0000 (15:05 -0700)
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>
drivers/staging/vt6655/hostap.c

index 579220b418b71866fd79787e5feabdbd1f5b4c8e..46f097d0c8412a3e53bc573307233d99d89ccb98 100644 (file)
@@ -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;
 
This page took 0.026527 seconds and 5 git commands to generate.