From: Hema Prathaban Date: Fri, 17 May 2013 05:44:56 +0000 (+0530) Subject: staging: vt6655: Use alloc_etherdev() for kzalloc X-Git-Tag: next-20130521~23^2~27 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3523a90ed9e245a1bc27b9f8b44128887a641b43;p=karo-tx-linux.git staging: vt6655: Use alloc_etherdev() for kzalloc Use alloc_etherdev() for kzalloc Signed-off-by: Hema Prathaban Acked-by: Peter P Waskiewicz Jr Signed-off-by: Greg Kroah-Hartman --- 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;