diff options
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r-- | drivers/net/macb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index dcf6011b136c..0fcdc25699d8 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c | |||
@@ -1172,7 +1172,7 @@ static int __init macb_probe(struct platform_device *pdev) | |||
1172 | clk_enable(bp->hclk); | 1172 | clk_enable(bp->hclk); |
1173 | #endif | 1173 | #endif |
1174 | 1174 | ||
1175 | bp->regs = ioremap(regs->start, regs->end - regs->start + 1); | 1175 | bp->regs = ioremap(regs->start, resource_size(regs)); |
1176 | if (!bp->regs) { | 1176 | if (!bp->regs) { |
1177 | dev_err(&pdev->dev, "failed to map registers, aborting.\n"); | 1177 | dev_err(&pdev->dev, "failed to map registers, aborting.\n"); |
1178 | err = -ENOMEM; | 1178 | err = -ENOMEM; |