diff options
Diffstat (limited to 'drivers/net/jazzsonic.c')
-rw-r--r-- | drivers/net/jazzsonic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/jazzsonic.c b/drivers/net/jazzsonic.c index ec337b502fd9..6e5b3f30527f 100644 --- a/drivers/net/jazzsonic.c +++ b/drivers/net/jazzsonic.c | |||
@@ -203,7 +203,7 @@ static int __devinit sonic_probe1(struct net_device *dev) | |||
203 | 203 | ||
204 | return 0; | 204 | return 0; |
205 | out: | 205 | out: |
206 | release_region(dev->base_addr, SONIC_MEM_SIZE); | 206 | release_mem_region(dev->base_addr, SONIC_MEM_SIZE); |
207 | return err; | 207 | return err; |
208 | } | 208 | } |
209 | 209 | ||
@@ -247,7 +247,7 @@ static int __devinit jazz_sonic_probe(struct platform_device *pdev) | |||
247 | return 0; | 247 | return 0; |
248 | 248 | ||
249 | out1: | 249 | out1: |
250 | release_region(dev->base_addr, SONIC_MEM_SIZE); | 250 | release_mem_region(dev->base_addr, SONIC_MEM_SIZE); |
251 | out: | 251 | out: |
252 | free_netdev(dev); | 252 | free_netdev(dev); |
253 | 253 | ||
@@ -269,7 +269,7 @@ static int __devexit jazz_sonic_device_remove (struct platform_device *pdev) | |||
269 | unregister_netdev(dev); | 269 | unregister_netdev(dev); |
270 | dma_free_coherent(lp->device, SIZEOF_SONIC_DESC * SONIC_BUS_SCALE(lp->dma_bitmode), | 270 | dma_free_coherent(lp->device, SIZEOF_SONIC_DESC * SONIC_BUS_SCALE(lp->dma_bitmode), |
271 | lp->descriptors, lp->descriptors_laddr); | 271 | lp->descriptors, lp->descriptors_laddr); |
272 | release_region (dev->base_addr, SONIC_MEM_SIZE); | 272 | release_mem_region(dev->base_addr, SONIC_MEM_SIZE); |
273 | free_netdev(dev); | 273 | free_netdev(dev); |
274 | 274 | ||
275 | return 0; | 275 | return 0; |