projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c3db42
)
w1: omap-hdq: don't hardcode resource size
author
Felipe Balbi
<
[email protected]
>
Wed, 25 Jul 2012 12:05:28 +0000
(15:05 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 16 Aug 2012 16:58:43 +0000
(09:58 -0700)
we have the helpful resource_size() macro to
calculate the size of the memory resource for
us, let's use it.
Signed-off-by: Felipe Balbi <
[email protected]
>
Acked-by: Evgeniy Polyakov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/w1/masters/omap_hdq.c
patch
|
blob
|
history
diff --git
a/drivers/w1/masters/omap_hdq.c
b/drivers/w1/masters/omap_hdq.c
index 38b0138ce74d8c5e4b48f2d4164ebfc5668fee7b..ee427975bd82e5a86a3125e478c93a4a122a280d 100644
(file)
--- a/
drivers/w1/masters/omap_hdq.c
+++ b/
drivers/w1/masters/omap_hdq.c
@@
-566,7
+566,7
@@
static int __devinit omap_hdq_probe(struct platform_device *pdev)
goto err_resource;
}
- hdq_data->hdq_base = ioremap(res->start,
SZ_4K
);
+ hdq_data->hdq_base = ioremap(res->start,
resource_size(res)
);
if (!hdq_data->hdq_base) {
dev_dbg(&pdev->dev, "ioremap failed\n");
ret = -EINVAL;