Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122459
b: refs/heads/master
c: 28945dd
h: refs/heads/master
i:
  122457: 8c6a172
  122455: 5845f95
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Dec 4, 2008
1 parent 995adc1 commit 871714d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36cbac5909d227c4de31fb93e1dd99c839c9cb6f
refs/heads/master: 28945dd4fba8dcbc1c74ea702b731caaedae6ccb
10 changes: 5 additions & 5 deletions trunk/arch/ia64/hp/sim/simeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ simeth_probe1(void)

memcpy(dev->dev_addr, mac_addr, sizeof(mac_addr));

local = dev->priv;
local = netdev_priv(dev);
local->simfd = fd; /* keep track of underlying file descriptor */

dev->open = simeth_open;
Expand Down Expand Up @@ -325,7 +325,7 @@ simeth_device_event(struct notifier_block *this,unsigned long event, void *ptr)
* we get DOWN then UP.
*/

local = dev->priv;
local = netdev_priv(dev);
/* now do it for real */
r = event == NETDEV_UP ?
netdev_attach(local->simfd, dev->irq, ntohl(ifa->ifa_local)):
Expand Down Expand Up @@ -380,7 +380,7 @@ frame_print(unsigned char *from, unsigned char *frame, int len)
static int
simeth_tx(struct sk_buff *skb, struct net_device *dev)
{
struct simeth_local *local = dev->priv;
struct simeth_local *local = netdev_priv(dev);

#if 0
/* ensure we have at least ETH_ZLEN bytes (min frame size) */
Expand Down Expand Up @@ -443,7 +443,7 @@ simeth_rx(struct net_device *dev)
int len;
int rcv_count = SIMETH_RECV_MAX;

local = dev->priv;
local = netdev_priv(dev);
/*
* the loop concept has been borrowed from other drivers
* looks to me like it's a throttling thing to avoid pushing to many
Expand Down Expand Up @@ -507,7 +507,7 @@ simeth_interrupt(int irq, void *dev_id)
static struct net_device_stats *
simeth_get_stats(struct net_device *dev)
{
struct simeth_local *local = dev->priv;
struct simeth_local *local = netdev_priv(dev);

return &local->stats;
}
Expand Down

0 comments on commit 871714d

Please sign in to comment.