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

Commit 4716eaf2 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Jeff Garzik
Browse files

pata_octeon_cf: use resource_size(), to fix resource sizing bug



It appears the size for cs1 is calculated using the wrong resource.
Use the function resource_size to get the correct value.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 0cdd6eb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -853,7 +853,7 @@ static int __devinit octeon_cf_probe(struct platform_device *pdev)
			return -EINVAL;

		cs1 = devm_ioremap_nocache(&pdev->dev, res_cs1->start,
					   res_cs0->end - res_cs1->start + 1);
					   resource_size(res_cs1));

		if (!cs1)
			return -ENOMEM;