From 68f429d55876e4e51c2be2a1becb51950929bc87 Mon Sep 17 00:00:00 2001 From: Libo Chen Date: Mon, 26 Aug 2013 15:06:36 +0800 Subject: [PATCH] max8925_power: Fix missing of_node_put Decrease np device_node refcount after we are done with the node. Signed-off-by: Libo Chen Signed-off-by: Anton Vorontsov --- drivers/power/max8925_power.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/max8925_power.c b/drivers/power/max8925_power.c index 0ee1e14f76e9..b4513f284bbc 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; -- 2.20.1