aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pxa168_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pxa168_eth.c')
-rw-r--r--drivers/net/pxa168_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/pxa168_eth.c b/drivers/net/pxa168_eth.c
index 89f7540d90f9..df1292eb9c2e 100644
--- a/drivers/net/pxa168_eth.c
+++ b/drivers/net/pxa168_eth.c
@@ -1502,7 +1502,7 @@ static int pxa168_eth_probe(struct platform_device *pdev)
1502 err = -ENODEV; 1502 err = -ENODEV;
1503 goto err_netdev; 1503 goto err_netdev;
1504 } 1504 }
1505 pep->base = ioremap(res->start, res->end - res->start + 1); 1505 pep->base = ioremap(res->start, resource_size(res));
1506 if (pep->base == NULL) { 1506 if (pep->base == NULL) {
1507 err = -ENOMEM; 1507 err = -ENOMEM;
1508 goto err_netdev; 1508 goto err_netdev;