Commit 66342cc2 authored by Steffen Klassert's avatar Steffen Klassert Committed by Linus Torvalds

[PATCH] 3c59x: use netdev_priv

Patch changes the two remaining direct accessing of dev->priv to netdev_priv.
Signed-off-by: default avatarSteffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 96a054eb
...@@ -935,7 +935,7 @@ MODULE_PARM_DESC(watchdog, "3c59x transmit timeout in milliseconds"); ...@@ -935,7 +935,7 @@ MODULE_PARM_DESC(watchdog, "3c59x transmit timeout in milliseconds");
#ifdef CONFIG_NET_POLL_CONTROLLER #ifdef CONFIG_NET_POLL_CONTROLLER
static void poll_vortex(struct net_device *dev) static void poll_vortex(struct net_device *dev)
{ {
struct vortex_private *vp = (struct vortex_private *)dev->priv; struct vortex_private *vp = netdev_priv(dev);
unsigned long flags; unsigned long flags;
local_save_flags(flags); local_save_flags(flags);
local_irq_disable(); local_irq_disable();
...@@ -2990,7 +2990,7 @@ static void set_rx_mode(struct net_device *dev) ...@@ -2990,7 +2990,7 @@ static void set_rx_mode(struct net_device *dev)
static void set_8021q_mode(struct net_device *dev, int enable) static void set_8021q_mode(struct net_device *dev, int enable)
{ {
struct vortex_private *vp = (struct vortex_private *)dev->priv; struct vortex_private *vp = netdev_priv(dev);
long ioaddr = dev->base_addr; long ioaddr = dev->base_addr;
int old_window = inw(ioaddr + EL3_CMD); int old_window = inw(ioaddr + EL3_CMD);
int mac_ctrl; int mac_ctrl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment