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>
This commit is contained in:
parent
72381a1732
commit
3523a90ed9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue