projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ARM: imx: add missing of_node_put()
[platform/kernel/linux-rpi.git]
/
arch
/
arm
/
mach-imx
/
cpu-imx5.c
diff --git
a/arch/arm/mach-imx/cpu-imx5.c
b/arch/arm/mach-imx/cpu-imx5.c
index
ad56263
..
a67c89b
100644
(file)
--- a/
arch/arm/mach-imx/cpu-imx5.c
+++ b/
arch/arm/mach-imx/cpu-imx5.c
@@
-28,6
+28,7
@@
static u32 imx5_read_srev_reg(const char *compat)
np = of_find_compatible_node(NULL, NULL, compat);
iim_base = of_iomap(np, 0);
+ of_node_put(np);
WARN_ON(!iim_base);
srev = readl(iim_base + IIM_SREV) & 0xff;