diff options
author | Phil Carmody <pc+lkml@asdf.org> | 2014-09-17 00:00:54 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-03-17 01:56:51 +0100 |
commit | e702240e8364952e260829c8700fbc870aa4b053 (patch) | |
tree | bf26df8c5883058515bff0c4c6bb13d48208a485 /drivers/macintosh/via-pmu.c | |
parent | powerpc/via-pmu: fix error path in find_via_pmu() (diff) | |
download | linux-e702240e8364952e260829c8700fbc870aa4b053.tar.xz linux-e702240e8364952e260829c8700fbc870aa4b053.zip |
powerpc/via-pmu: fix OF node leak in Keylargo init
If we of_find_node_by_name() then we must of_node_put() too.
Signed-off-by: Phil Carmody <pc+lkml@asdf.org>
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/macintosh/via-pmu.c')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 62212358640d..aed3cb07a6fa 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -329,6 +329,7 @@ int __init find_via_pmu(void) gaddr = of_translate_address(gpiop, reg); if (gaddr != OF_BAD_ADDR) gpio_reg = ioremap(gaddr, 0x10); + of_node_put(gpiop); } if (gpio_reg == NULL) { printk(KERN_ERR "via-pmu: Can't find GPIO reg !\n"); |