infiniband: Kill directly reference of netdev->priv
authorWang Chen <wangchen@cn.fujitsu.com>
Mon, 24 Nov 2008 23:34:00 +0000 (15:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Nov 2008 23:34:00 +0000 (15:34 -0800)
commit4b40eed73e3787d60160beed1352ceadd24f6be1
treeb85c3f6b4a159cee164c9cec7ac12be849d8e568
parent486bf8de17361232c40e092a219f328093e34dca
infiniband: Kill directly reference of netdev->priv

This use of netdev->priv is wrong.
The right way is:
alloc_netdev() with no memory for private data.
make netdev->ml_priv to point to c2_dev.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Acked-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/amso1100/c2_provider.c