diff options
author | Libo Chen <clbchenlibo.chen@huawei.com> | 2013-08-26 03:06:36 -0400 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-08-27 21:11:54 -0400 |
commit | 68f429d55876e4e51c2be2a1becb51950929bc87 (patch) | |
tree | 5e86bae95aea6164a27f888318a6a7fede9fb718 /drivers/power/max8925_power.c | |
parent | f107ae11f04aa32c9ae1e6629e9a5b886a7034bd (diff) |
max8925_power: Fix missing of_node_put
Decrease np device_node refcount after we are done with the node.
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/max8925_power.c')
-rw-r--r-- | 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 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) | |||
458 | of_property_read_u32(np, "fast-charge", &fast_charge); | 458 | of_property_read_u32(np, "fast-charge", &fast_charge); |
459 | of_property_read_u32(np, "no-insert-detect", &no_insert_detect); | 459 | of_property_read_u32(np, "no-insert-detect", &no_insert_detect); |
460 | of_property_read_u32(np, "no-temp-support", &no_temp_support); | 460 | of_property_read_u32(np, "no-temp-support", &no_temp_support); |
461 | of_node_put(np); | ||
461 | 462 | ||
462 | pdata->batt_detect = batt_detect; | 463 | pdata->batt_detect = batt_detect; |
463 | pdata->fast_charge = fast_charge; | 464 | pdata->fast_charge = fast_charge; |