summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/aspeed-pwm-tacho.c
diff options
context:
space:
mode:
authorStefan Schaeckeler <sschaeck@cisco.com>2017-06-02 21:42:08 +0200
committerGuenter Roeck <linux@roeck-us.net>2017-06-03 12:54:00 +0200
commit4d58e7329fdd87d37f04b319d6a5165aaff5d75c (patch)
tree85881c8d1fbe5933c6a0ab205e640eacdc72cba4 /drivers/hwmon/aspeed-pwm-tacho.c
parenthwmon: (aspeed-pwm-tacho) On read failure return -ETIMEDOUT (diff)
downloadlinux-4d58e7329fdd87d37f04b319d6a5165aaff5d75c.tar.xz
linux-4d58e7329fdd87d37f04b319d6a5165aaff5d75c.zip
hwmon: (aspeed-pwm-tacho) Call of_node_put() on a node not claimed
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>
Diffstat (limited to 'drivers/hwmon/aspeed-pwm-tacho.c')
-rw-r--r--drivers/hwmon/aspeed-pwm-tacho.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/aspeed-pwm-tacho.c b/drivers/hwmon/aspeed-pwm-tacho.c
index 12b716b70ead..cc15bedb3415 100644
--- 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;