diff options
author | Forest Bond <forest@alittletooquiet.net> | 2009-06-13 07:38:50 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:32 -0700 |
commit | 1e28efa3eb3cdfe6a3be0499d309fb75250c1028 (patch) | |
tree | 238cd41a22a23da0d6ba13a082d24d96700a7cd7 /drivers/staging/vt6656/hostap.c | |
parent | 8f9c466f291a94b138560f28242c44e320a79ca4 (diff) | |
download | op-kernel-dev-1e28efa3eb3cdfe6a3be0499d309fb75250c1028.zip op-kernel-dev-1e28efa3eb3cdfe6a3be0499d309fb75250c1028.tar.gz |
Staging: vt6656: Replace net_device->priv accesses with netdev_priv calls.
vt6656: Replace net_device->priv accesses with netdev_priv calls.
Signed-off-by: Forest Bond <forest@alittletooquiet.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656/hostap.c')
-rw-r--r-- | drivers/staging/vt6656/hostap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c index 78312f8..b6ca36a 100644 --- a/drivers/staging/vt6656/hostap.c +++ b/drivers/staging/vt6656/hostap.c @@ -103,6 +103,7 @@ static int msglevel =MSG_LEVEL_INFO; static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked) { + PSDevice apdev_priv; struct net_device *dev = pDevice->dev; int ret; @@ -113,7 +114,8 @@ static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked) return -ENOMEM; memset(pDevice->apdev, 0, sizeof(struct net_device)); - pDevice->apdev->priv = pDevice; + apdev_priv = netdev_priv(pDevice->apdev); + *apdev_priv = *pDevice; memcpy(pDevice->apdev->dev_addr, dev->dev_addr, ETH_ALEN); pDevice->apdev->hard_start_xmit = pDevice->tx_80211; pDevice->apdev->type = ARPHRD_IEEE80211; |