mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
drivers/ide/ide_platform.c: use resource_size()
Use resource_size() for devm_{ioremap/io_port_map}. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4b7c7237c0
commit
30433d8141
1 changed files with 4 additions and 4 deletions
|
@ -81,14 +81,14 @@ static int __devinit plat_ide_probe(struct platform_device *pdev)
|
|||
|
||||
if (mmio) {
|
||||
base = devm_ioremap(&pdev->dev,
|
||||
res_base->start, res_base->end - res_base->start + 1);
|
||||
res_base->start, resource_size(res_base));
|
||||
alt_base = devm_ioremap(&pdev->dev,
|
||||
res_alt->start, res_alt->end - res_alt->start + 1);
|
||||
res_alt->start, resource_size(res_alt));
|
||||
} else {
|
||||
base = devm_ioport_map(&pdev->dev,
|
||||
res_base->start, res_base->end - res_base->start + 1);
|
||||
res_base->start, resource_size(res_base));
|
||||
alt_base = devm_ioport_map(&pdev->dev,
|
||||
res_alt->start, res_alt->end - res_alt->start + 1);
|
||||
res_alt->start, resource_size(res_alt));
|
||||
}
|
||||
|
||||
memset(&hw, 0, sizeof(hw));
|
||||
|
|
Loading…
Reference in a new issue