drivers/rtc/rtc-88pm860x.c: add missing of_node_put()
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 6 Jun 2014 21:35:52 +0000 (14:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:07 +0000 (16:08 -0700)
Add missing of_node_put() to decrement the reference count.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
Cc: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-88pm860x.c

index fb9e3c63b4ac04d1387e597f4c610a2438e783d6..0c6add1a38dc73a5aa2d0c5ea22b4ce6edbb0fc7 100644 (file)
@@ -301,6 +301,7 @@ static int pm860x_rtc_dt_init(struct platform_device *pdev,
        ret = of_property_read_u32(np, "marvell,88pm860x-vrtc", &info->vrtc);
        if (ret)
                info->vrtc = 0;
+       of_node_put(np);
        return 0;
 }
 #else