projects
/
GitHub
/
moto-9609
/
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:
f55532a
)
ARM: rockchip: Fix use of plain integer as NULL pointer
author
Peter Griffin
<peter.griffin@linaro.org>
Thu, 17 Mar 2016 13:43:11 +0000
(13:43 +0000)
committer
Heiko Stuebner
<heiko@sntech.de>
Tue, 12 Apr 2016 01:30:30 +0000
(
03:30
+0200)
This fixes the following sparse build warning:
mach-rockchip/platsmp.c:68:43: Using plain integer as NULL pointer
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/mach-rockchip/platsmp.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-rockchip/platsmp.c
b/arch/arm/mach-rockchip/platsmp.c
index d42a07e334822bfabbda05e3fa8f2dbe0c3a2093..4d827a069d49c7a9a5dcae3ce9b2f81d807b3578 100644
(file)
--- a/
arch/arm/mach-rockchip/platsmp.c
+++ b/
arch/arm/mach-rockchip/platsmp.c
@@
-65,7
+65,7
@@
static struct reset_control *rockchip_get_core_reset(int cpu)
if (dev)
np = dev->of_node;
else
- np = of_get_cpu_node(cpu,
0
);
+ np = of_get_cpu_node(cpu,
NULL
);
return of_reset_control_get(np, NULL);
}