Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1cbe7d6 authored by Alexandru Gheorghiu's avatar Alexandru Gheorghiu Committed by Jeff Garzik
Browse files

pata_octeon_cf: Use resource_size function



Use resource_size function instead of explicit computation.
Patch found using coccinelle.

Signed-off-by: default avatarAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent e0044c98
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -926,7 +926,7 @@ static int octeon_cf_probe(struct platform_device *pdev)
			goto free_cf_port;
			goto free_cf_port;
		}
		}
		cs1 = devm_ioremap_nocache(&pdev->dev, res_cs1->start,
		cs1 = devm_ioremap_nocache(&pdev->dev, res_cs1->start,
					   res_cs1->end - res_cs1->start + 1);
					   resource_size(res_cs1));


		if (!cs1)
		if (!cs1)
			goto free_cf_port;
			goto free_cf_port;