aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/hp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/hp')
-rw-r--r--arch/ia64/hp/sim/simeth.c10
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)
380static int 380static int
381simeth_tx(struct sk_buff *skb, struct net_device *dev) 381simeth_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)
507static struct net_device_stats * 507static struct net_device_stats *
508simeth_get_stats(struct net_device *dev) 508simeth_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}