]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/tokenring/madgemc.c
dev->priv to netdev_priv(dev), drivers/net/tokenring/
[linux-2.6-omap-h63xx.git] / drivers / net / tokenring / madgemc.c
index f8f4d74f01f1e4959640d8dc0ad35fcd15afe4dd..9eafc2e25abc261ffaa77e852dbd119a50152734 100644 (file)
@@ -690,7 +690,7 @@ static int madgemc_close(struct net_device *dev)
 static int madgemc_mcaproc(char *buf, int slot, void *d) 
 {      
        struct net_device *dev = (struct net_device *)d;
-       struct net_local *tp = dev->priv;
+       struct net_local *tp = netdev_priv(dev);
        struct card_info *curcard = tp->tmspriv;
        int len = 0;
        
@@ -736,7 +736,7 @@ static int __devexit madgemc_remove(struct device *device)
 
        BUG_ON(!dev);
 
-       tp = dev->priv;
+       tp = netdev_priv(dev);
        card = tp->tmspriv;
        kfree(card);
        tp->tmspriv = NULL;