OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c532d1
)
thermal: exynos_tmu: fix wrong error check for mapped memory
author
Naveen Krishna Chatradhi
<ch.naveen@samsung.com>
Wed, 7 Aug 2013 08:31:09 +0000
(14:01 +0530)
committer
Zhang Rui
<rui.zhang@intel.com>
Thu, 15 Aug 2013 07:00:28 +0000
(15:00 +0800)
The error check is checking for a "base" mapped memory base
instead of "base_common". Fixing the same.
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/samsung/exynos_tmu.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/samsung/exynos_tmu.c
b/drivers/thermal/samsung/exynos_tmu.c
index
ec01dfe
..
a033dbb
100644
(file)
--- a/
drivers/thermal/samsung/exynos_tmu.c
+++ b/
drivers/thermal/samsung/exynos_tmu.c
@@
-592,7
+592,7
@@
static int exynos_map_dt_data(struct platform_device *pdev)
data->base_common = devm_ioremap(&pdev->dev, res.start,
resource_size(&res));
- if (!data->base) {
+ if (!data->base
_common
) {
dev_err(&pdev->dev, "Failed to ioremap memory\n");
return -ENOMEM;
}