projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f107ae1
)
max8925_power: Fix missing of_node_put
author
Libo Chen
<clbchenlibo.chen@huawei.com>
Mon, 26 Aug 2013 07:06:36 +0000
(15:06 +0800)
committer
Anton 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/max8925_power.c
b/drivers/power/max8925_power.c
index 0ee1e14f76e9a8957f298cb797fb3243958a0af9..b4513f284bbc48385b7de527b16364921a2195e7 100644
(file)
--- 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;