decrease np device_node refcount after task completion
Signed-off-by: Libo Chen <[email protected]>
---
drivers/power/max8925_power.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/power/max8925_power.c b/drivers/power/max8925_power.c
index 0ee1e14..b4513f2 100644
--- a/drivers/power/max8925_power.c
+++ b/drivers/power/max8925_power.c
@@ -458,6 +458,7 @@ max8925_power_dt_init(struct platform_device *pdev)
of_property_read_u32(np, "fast-charge", &fast_charge);
of_property_read_u32(np, "no-insert-detect", &no_insert_detect);
of_property_read_u32(np, "no-temp-support", &no_temp_support);
+ of_node_put(np);
pdata->batt_detect = batt_detect;
pdata->fast_charge = fast_charge;
--
1.7.1
On Mon, Aug 26, 2013 at 03:06:36PM +0800, Libo Chen wrote:
>
> decrease np device_node refcount after task completion
>
> Signed-off-by: Libo Chen <[email protected]>
Applied, thanks!
Anton