mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
pata_octeon_cf: Use resource_size function
Use resource_size function instead of explicit computation. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
e0044c9822
commit
b1cbe7d621
@ -926,7 +926,7 @@ static int octeon_cf_probe(struct platform_device *pdev)
|
||||
goto free_cf_port;
|
||||
}
|
||||
cs1 = devm_ioremap_nocache(&pdev->dev, res_cs1->start,
|
||||
res_cs1->end - res_cs1->start + 1);
|
||||
resource_size(res_cs1));
|
||||
|
||||
if (!cs1)
|
||||
goto free_cf_port;
|
||||
|
Loading…
Reference in New Issue
Block a user