Skip to content

Commit

Permalink
staging-winbond: Kill directly reference of netdev->priv
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Chen authored and David S. Miller committed Dec 8, 2008
1 parent 4bcd426 commit 5a001a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/staging/winbond/linux/wbusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,11 @@ WbUsb_destroy(phw_data_t pHwData)

int wb35_open(struct net_device *netdev)
{
PADAPTER Adapter = (PADAPTER)netdev->priv;
/* netdev_priv() or netdev->ml_priv should reference to the address of
* private data(PADAPTER). It depends on whether private data memory is
* allocated when alloc_netdev().
*/
PADAPTER Adapter = (PADAPTER)netdev_priv(netdev);
phw_data_t pHwData = &Adapter->sHwData;

netif_start_queue(netdev);
Expand Down

0 comments on commit 5a001a0

Please sign in to comment.