netdevice ppp: Convert directly reference of netdev->priv
authorWang Chen <wangchen@cn.fujitsu.com>
Thu, 20 Nov 2008 12:24:17 +0000 (04:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Nov 2008 12:24:17 +0000 (04:24 -0800)
commitc8019bf3aff653cceb64f66489fc299ee5957b57
tree2b2bd0d72c2709d5f9bfc05d66ef389c4731b15d
parentf7b29271c35ed38f990ca3419696ca148349c2d3
netdevice ppp: Convert directly reference of netdev->priv

1. Use netdev_priv(dev) to replace dev->priv.
2. Alloc netdev's private data by alloc_netdev().

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp_generic.c