projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0044c9
)
pata_octeon_cf: Use resource_size function
author
Alexandru Gheorghiu
<gheorghiuandru@gmail.com>
Sat, 16 Mar 2013 14:32:11 +0000
(16:32 +0200)
committer
Jeff Garzik
<jgarzik@redhat.com>
Wed, 3 Apr 2013 23:53:30 +0000
(19:53 -0400)
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>
drivers/ata/pata_octeon_cf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/pata_octeon_cf.c
b/drivers/ata/pata_octeon_cf.c
index ff2e57f3b5972521377199814a2e4f0a0aaa0ae2..e73bef3093d2be6c859c462b4f8fa50758e21b80 100644
(file)
--- a/
drivers/ata/pata_octeon_cf.c
+++ b/
drivers/ata/pata_octeon_cf.c
@@
-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
);
+ res
ource_size(res_cs1)
);
if (!cs1)
goto free_cf_port;