aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-12-08 04:13:25 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-08 04:13:25 -0500
commit5a001a070e032bea1be563b13ebf9819cd5e54d4 (patch)
treeb8c194f617f51ea095e9df9136f3773780c14a27 /drivers
parent4bcd42679643dd3dfd6aaad9fcbcc74ac5c7e2e9 (diff)
staging-winbond: Kill directly reference of netdev->priv
This driver is not yet finished. At this time, we don't know how netdev be created and how private data be allocated. So, simply use netdev_priv() now and leave some temp comment. Compile test only. Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/winbond/linux/wbusb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/winbond/linux/wbusb.c b/drivers/staging/winbond/linux/wbusb.c
index f4a7875f2389..39ca9b9878f8 100644
--- a/drivers/staging/winbond/linux/wbusb.c
+++ b/drivers/staging/winbond/linux/wbusb.c
@@ -336,7 +336,11 @@ WbUsb_destroy(phw_data_t pHwData)
336 336
337int wb35_open(struct net_device *netdev) 337int wb35_open(struct net_device *netdev)
338{ 338{
339 PADAPTER Adapter = (PADAPTER)netdev->priv; 339 /* netdev_priv() or netdev->ml_priv should reference to the address of
340 * private data(PADAPTER). It depends on whether private data memory is
341 * allocated when alloc_netdev().
342 */
343 PADAPTER Adapter = (PADAPTER)netdev_priv(netdev);
340 phw_data_t pHwData = &Adapter->sHwData; 344 phw_data_t pHwData = &Adapter->sHwData;
341 345
342 netif_start_queue(netdev); 346 netif_start_queue(netdev);