diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2008-12-04 18:06:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-04 18:06:27 -0500 |
commit | 28945dd4fba8dcbc1c74ea702b731caaedae6ccb (patch) | |
tree | 3efab920d8ee54516457376eea93b637810065b3 /arch/ia64 | |
parent | 36cbac5909d227c4de31fb93e1dd99c839c9cb6f (diff) |
simeth: Kill directly reference of netdev->priv
Simply replace netdev->priv with netdev_priv().
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/hp/sim/simeth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/ia64/hp/sim/simeth.c b/arch/ia64/hp/sim/simeth.c index 3d47839a0c48..c51b32c0b854 100644 --- a/arch/ia64/hp/sim/simeth.c +++ b/arch/ia64/hp/sim/simeth.c | |||
@@ -206,7 +206,7 @@ simeth_probe1(void) | |||
206 | 206 | ||
207 | memcpy(dev->dev_addr, mac_addr, sizeof(mac_addr)); | 207 | memcpy(dev->dev_addr, mac_addr, sizeof(mac_addr)); |
208 | 208 | ||
209 | local = dev->priv; | 209 | local = netdev_priv(dev); |
210 | local->simfd = fd; /* keep track of underlying file descriptor */ | 210 | local->simfd = fd; /* keep track of underlying file descriptor */ |
211 | 211 | ||
212 | dev->open = simeth_open; | 212 | dev->open = simeth_open; |
@@ -325,7 +325,7 @@ simeth_device_event(struct notifier_block *this,unsigned long event, void *ptr) | |||
325 | * we get DOWN then UP. | 325 | * we get DOWN then UP. |
326 | */ | 326 | */ |
327 | 327 | ||
328 | local = dev->priv; | 328 | local = netdev_priv(dev); |
329 | /* now do it for real */ | 329 | /* now do it for real */ |
330 | r = event == NETDEV_UP ? | 330 | r = event == NETDEV_UP ? |
331 | netdev_attach(local->simfd, dev->irq, ntohl(ifa->ifa_local)): | 331 | netdev_attach(local->simfd, dev->irq, ntohl(ifa->ifa_local)): |
@@ -380,7 +380,7 @@ frame_print(unsigned char *from, unsigned char *frame, int len) | |||
380 | static int | 380 | static int |
381 | simeth_tx(struct sk_buff *skb, struct net_device *dev) | 381 | simeth_tx(struct sk_buff *skb, struct net_device *dev) |
382 | { | 382 | { |
383 | struct simeth_local *local = dev->priv; | 383 | struct simeth_local *local = netdev_priv(dev); |
384 | 384 | ||
385 | #if 0 | 385 | #if 0 |
386 | /* ensure we have at least ETH_ZLEN bytes (min frame size) */ | 386 | /* ensure we have at least ETH_ZLEN bytes (min frame size) */ |
@@ -443,7 +443,7 @@ simeth_rx(struct net_device *dev) | |||
443 | int len; | 443 | int len; |
444 | int rcv_count = SIMETH_RECV_MAX; | 444 | int rcv_count = SIMETH_RECV_MAX; |
445 | 445 | ||
446 | local = dev->priv; | 446 | local = netdev_priv(dev); |
447 | /* | 447 | /* |
448 | * the loop concept has been borrowed from other drivers | 448 | * the loop concept has been borrowed from other drivers |
449 | * looks to me like it's a throttling thing to avoid pushing to many | 449 | * looks to me like it's a throttling thing to avoid pushing to many |
@@ -507,7 +507,7 @@ simeth_interrupt(int irq, void *dev_id) | |||
507 | static struct net_device_stats * | 507 | static struct net_device_stats * |
508 | simeth_get_stats(struct net_device *dev) | 508 | simeth_get_stats(struct net_device *dev) |
509 | { | 509 | { |
510 | struct simeth_local *local = dev->priv; | 510 | struct simeth_local *local = netdev_priv(dev); |
511 | 511 | ||
512 | return &local->stats; | 512 | return &local->stats; |
513 | } | 513 | } |