aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mvme147.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/mvme147.c')
-rw-r--r--drivers/net/mvme147.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mvme147.c b/drivers/net/mvme147.c
index d30b0d0026ec..435e5a847c43 100644
--- a/drivers/net/mvme147.c
+++ b/drivers/net/mvme147.c
@@ -105,7 +105,7 @@ struct net_device * __init mvme147lance_probe(int unit)
105 dev->name, dev->base_addr, MVME147_LANCE_IRQ, 105 dev->name, dev->base_addr, MVME147_LANCE_IRQ,
106 dev->dev_addr); 106 dev->dev_addr);
107 107
108 lp = (struct m147lance_private *)dev->priv; 108 lp = netdev_priv(dev);
109 lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 16K */ 109 lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 16K */
110 if (!lp->ram) 110 if (!lp->ram)
111 { 111 {
@@ -189,7 +189,7 @@ int __init init_module(void)
189 189
190void __exit cleanup_module(void) 190void __exit cleanup_module(void)
191{ 191{
192 struct m147lance_private *lp = dev_mvme147_lance->priv; 192 struct m147lance_private *lp = netdev_priv(dev_mvme147_lance);
193 unregister_netdev(dev_mvme147_lance); 193 unregister_netdev(dev_mvme147_lance);
194 free_pages(lp->ram, 3); 194 free_pages(lp->ram, 3);
195 free_netdev(dev_mvme147_lance); 195 free_netdev(dev_mvme147_lance);