max8925_power: Fix missing of_node_put
authorLibo Chen <clbchenlibo.chen@huawei.com>
Mon, 26 Aug 2013 07:06:36 +0000 (15:06 +0800)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 28 Aug 2013 01:11:54 +0000 (18:11 -0700)
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>
drivers/power/max8925_power.c

index 0ee1e14f76e9a8957f298cb797fb3243958a0af9..b4513f284bbc48385b7de527b16364921a2195e7 100644 (file)
@@ -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;