diff options
Diffstat (limited to 'drivers/net/sunhme.c')
-rw-r--r-- | drivers/net/sunhme.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index e55db660f763..b22d3355fb45 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c | |||
@@ -2130,7 +2130,7 @@ static irqreturn_t quattro_sbus_interrupt(int irq, void *cookie) | |||
2130 | 2130 | ||
2131 | for (i = 0; i < 4; i++) { | 2131 | for (i = 0; i < 4; i++) { |
2132 | struct net_device *dev = qp->happy_meals[i]; | 2132 | struct net_device *dev = qp->happy_meals[i]; |
2133 | struct happy_meal *hp = dev->priv; | 2133 | struct happy_meal *hp = netdev_priv(dev); |
2134 | u32 happy_status = hme_read32(hp, hp->gregs + GREG_STAT); | 2134 | u32 happy_status = hme_read32(hp, hp->gregs + GREG_STAT); |
2135 | 2135 | ||
2136 | HMD(("quattro_interrupt: status=%08x ", happy_status)); | 2136 | HMD(("quattro_interrupt: status=%08x ", happy_status)); |
@@ -2175,7 +2175,7 @@ static irqreturn_t quattro_sbus_interrupt(int irq, void *cookie) | |||
2175 | 2175 | ||
2176 | static int happy_meal_open(struct net_device *dev) | 2176 | static int happy_meal_open(struct net_device *dev) |
2177 | { | 2177 | { |
2178 | struct happy_meal *hp = dev->priv; | 2178 | struct happy_meal *hp = netdev_priv(dev); |
2179 | int res; | 2179 | int res; |
2180 | 2180 | ||
2181 | HMD(("happy_meal_open: ")); | 2181 | HMD(("happy_meal_open: ")); |
@@ -2207,7 +2207,7 @@ static int happy_meal_open(struct net_device *dev) | |||
2207 | 2207 | ||
2208 | static int happy_meal_close(struct net_device *dev) | 2208 | static int happy_meal_close(struct net_device *dev) |
2209 | { | 2209 | { |
2210 | struct happy_meal *hp = dev->priv; | 2210 | struct happy_meal *hp = netdev_priv(dev); |
2211 | 2211 | ||
2212 | spin_lock_irq(&hp->happy_lock); | 2212 | spin_lock_irq(&hp->happy_lock); |
2213 | happy_meal_stop(hp, hp->gregs); | 2213 | happy_meal_stop(hp, hp->gregs); |
@@ -2236,7 +2236,7 @@ static int happy_meal_close(struct net_device *dev) | |||
2236 | 2236 | ||
2237 | static void happy_meal_tx_timeout(struct net_device *dev) | 2237 | static void happy_meal_tx_timeout(struct net_device *dev) |
2238 | { | 2238 | { |
2239 | struct happy_meal *hp = dev->priv; | 2239 | struct happy_meal *hp = netdev_priv(dev); |
2240 | 2240 | ||
2241 | printk (KERN_ERR "%s: transmit timed out, resetting\n", dev->name); | 2241 | printk (KERN_ERR "%s: transmit timed out, resetting\n", dev->name); |
2242 | tx_dump_log(); | 2242 | tx_dump_log(); |
@@ -2254,7 +2254,7 @@ static void happy_meal_tx_timeout(struct net_device *dev) | |||
2254 | 2254 | ||
2255 | static int happy_meal_start_xmit(struct sk_buff *skb, struct net_device *dev) | 2255 | static int happy_meal_start_xmit(struct sk_buff *skb, struct net_device *dev) |
2256 | { | 2256 | { |
2257 | struct happy_meal *hp = dev->priv; | 2257 | struct happy_meal *hp = netdev_priv(dev); |
2258 | int entry; | 2258 | int entry; |
2259 | u32 tx_flags; | 2259 | u32 tx_flags; |
2260 | 2260 | ||
@@ -2343,7 +2343,7 @@ static int happy_meal_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
2343 | 2343 | ||
2344 | static struct net_device_stats *happy_meal_get_stats(struct net_device *dev) | 2344 | static struct net_device_stats *happy_meal_get_stats(struct net_device *dev) |
2345 | { | 2345 | { |
2346 | struct happy_meal *hp = dev->priv; | 2346 | struct happy_meal *hp = netdev_priv(dev); |
2347 | 2347 | ||
2348 | spin_lock_irq(&hp->happy_lock); | 2348 | spin_lock_irq(&hp->happy_lock); |
2349 | happy_meal_get_counters(hp, hp->bigmacregs); | 2349 | happy_meal_get_counters(hp, hp->bigmacregs); |
@@ -2354,7 +2354,7 @@ static struct net_device_stats *happy_meal_get_stats(struct net_device *dev) | |||
2354 | 2354 | ||
2355 | static void happy_meal_set_multicast(struct net_device *dev) | 2355 | static void happy_meal_set_multicast(struct net_device *dev) |
2356 | { | 2356 | { |
2357 | struct happy_meal *hp = dev->priv; | 2357 | struct happy_meal *hp = netdev_priv(dev); |
2358 | void __iomem *bregs = hp->bigmacregs; | 2358 | void __iomem *bregs = hp->bigmacregs; |
2359 | struct dev_mc_list *dmi = dev->mc_list; | 2359 | struct dev_mc_list *dmi = dev->mc_list; |
2360 | char *addrs; | 2360 | char *addrs; |
@@ -2400,7 +2400,7 @@ static void happy_meal_set_multicast(struct net_device *dev) | |||
2400 | /* Ethtool support... */ | 2400 | /* Ethtool support... */ |
2401 | static int hme_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) | 2401 | static int hme_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) |
2402 | { | 2402 | { |
2403 | struct happy_meal *hp = dev->priv; | 2403 | struct happy_meal *hp = netdev_priv(dev); |
2404 | 2404 | ||
2405 | cmd->supported = | 2405 | cmd->supported = |
2406 | (SUPPORTED_10baseT_Half | SUPPORTED_10baseT_Full | | 2406 | (SUPPORTED_10baseT_Half | SUPPORTED_10baseT_Full | |
@@ -2445,7 +2445,7 @@ static int hme_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
2445 | 2445 | ||
2446 | static int hme_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) | 2446 | static int hme_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) |
2447 | { | 2447 | { |
2448 | struct happy_meal *hp = dev->priv; | 2448 | struct happy_meal *hp = netdev_priv(dev); |
2449 | 2449 | ||
2450 | /* Verify the settings we care about. */ | 2450 | /* Verify the settings we care about. */ |
2451 | if (cmd->autoneg != AUTONEG_ENABLE && | 2451 | if (cmd->autoneg != AUTONEG_ENABLE && |
@@ -2469,7 +2469,7 @@ static int hme_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
2469 | 2469 | ||
2470 | static void hme_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | 2470 | static void hme_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) |
2471 | { | 2471 | { |
2472 | struct happy_meal *hp = dev->priv; | 2472 | struct happy_meal *hp = netdev_priv(dev); |
2473 | 2473 | ||
2474 | strcpy(info->driver, "sunhme"); | 2474 | strcpy(info->driver, "sunhme"); |
2475 | strcpy(info->version, "2.02"); | 2475 | strcpy(info->version, "2.02"); |
@@ -2491,7 +2491,7 @@ static void hme_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info | |||
2491 | 2491 | ||
2492 | static u32 hme_get_link(struct net_device *dev) | 2492 | static u32 hme_get_link(struct net_device *dev) |
2493 | { | 2493 | { |
2494 | struct happy_meal *hp = dev->priv; | 2494 | struct happy_meal *hp = netdev_priv(dev); |
2495 | 2495 | ||
2496 | spin_lock_irq(&hp->happy_lock); | 2496 | spin_lock_irq(&hp->happy_lock); |
2497 | hp->sw_bmcr = happy_meal_tcvr_read(hp, hp->tcvregs, MII_BMCR); | 2497 | hp->sw_bmcr = happy_meal_tcvr_read(hp, hp->tcvregs, MII_BMCR); |
@@ -2970,7 +2970,7 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev, | |||
2970 | 2970 | ||
2971 | dev->base_addr = (long) pdev; | 2971 | dev->base_addr = (long) pdev; |
2972 | 2972 | ||
2973 | hp = (struct happy_meal *)dev->priv; | 2973 | hp = netdev_priv(dev); |
2974 | memset(hp, 0, sizeof(*hp)); | 2974 | memset(hp, 0, sizeof(*hp)); |
2975 | 2975 | ||
2976 | hp->happy_dev = pdev; | 2976 | hp->happy_dev = pdev; |