mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
net: ag71xx: use resource_size for the ioremap size
use resource_size to calcuate ioremap size and make the code simpler. Signed-off-by: Ding Xiang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
e9e1dcda2e
commit
c51ab067c5
1 changed files with 1 additions and 1 deletions
|
|
@ -1686,7 +1686,7 @@ static int ag71xx_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
ag->mac_base = devm_ioremap_nocache(&pdev->dev, res->start,
|
||||
res->end - res->start + 1);
|
||||
resource_size(res));
|
||||
if (!ag->mac_base) {
|
||||
err = -ENOMEM;
|
||||
goto err_free;
|
||||
|
|
|
|||
Loading…
Reference in a new issue