projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed1c5e
)
hwmon: (aspeed-pwm-tacho) Call of_node_put() on a node not claimed
author
Stefan Schaeckeler
<sschaeck@cisco.com>
Fri, 2 Jun 2017 19:42:08 +0000
(12:42 -0700)
committer
Guenter Roeck
<linux@roeck-us.net>
Sat, 3 Jun 2017 10:54:00 +0000
(
03:54
-0700)
Call of_node_put() on a node claimed with of_node_get() or by any other
means such as for_each_child_of_node().
Signed-off-by: Stefan Schaeckeler <sschaeck@cisco.com>
Fixes: 2d7a548a3eff ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/aspeed-pwm-tacho.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/aspeed-pwm-tacho.c
b/drivers/hwmon/aspeed-pwm-tacho.c
index 12b716b70eada61a39936eac0801a5cf59e07f38..cc15bedb3415875193ece557554fc53128e4238f 100644
(file)
--- a/
drivers/hwmon/aspeed-pwm-tacho.c
+++ b/
drivers/hwmon/aspeed-pwm-tacho.c
@@
-808,7
+808,6
@@
static int aspeed_pwm_tacho_probe(struct platform_device *pdev)
if (ret)
return ret;
}
- of_node_put(np);
priv->groups[0] = &pwm_dev_group;
priv->groups[1] = &fan_dev_group;