aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tokenring/madgemc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tokenring/madgemc.c')
-rw-r--r--drivers/net/tokenring/madgemc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tokenring/madgemc.c b/drivers/net/tokenring/madgemc.c
index f8f4d74f01f1..9eafc2e25abc 100644
--- a/drivers/net/tokenring/madgemc.c
+++ b/drivers/net/tokenring/madgemc.c
@@ -690,7 +690,7 @@ static int madgemc_close(struct net_device *dev)
690static int madgemc_mcaproc(char *buf, int slot, void *d) 690static int madgemc_mcaproc(char *buf, int slot, void *d)
691{ 691{
692 struct net_device *dev = (struct net_device *)d; 692 struct net_device *dev = (struct net_device *)d;
693 struct net_local *tp = dev->priv; 693 struct net_local *tp = netdev_priv(dev);
694 struct card_info *curcard = tp->tmspriv; 694 struct card_info *curcard = tp->tmspriv;
695 int len = 0; 695 int len = 0;
696 696
@@ -736,7 +736,7 @@ static int __devexit madgemc_remove(struct device *device)
736 736
737 BUG_ON(!dev); 737 BUG_ON(!dev);
738 738
739 tp = dev->priv; 739 tp = netdev_priv(dev);
740 card = tp->tmspriv; 740 card = tp->tmspriv;
741 kfree(card); 741 kfree(card);
742 tp->tmspriv = NULL; 742 tp->tmspriv = NULL;