projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cdd6eb
)
pata_octeon_cf: use resource_size(), to fix resource sizing bug
author
H Hartley Sweeten
<hartleys@visionengravers.com>
Fri, 11 Dec 2009 01:03:10 +0000
(20:03 -0500)
committer
Jeff Garzik
<jgarzik@redhat.com>
Thu, 17 Dec 2009 06:02:50 +0000
(
01:02
-0500)
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: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_octeon_cf.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_octeon_cf.c
b/drivers/ata/pata_octeon_cf.c
index
d6f6956
..
37ef416
100644
(file)
--- a/
drivers/ata/pata_octeon_cf.c
+++ b/
drivers/ata/pata_octeon_cf.c
@@
-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
);
+ res
ource_size(res_cs1)
);
if (!cs1)
return -ENOMEM;