[PATCH] drivers: hwmon: aspeed fan driver: call of_node_put() on a node not claimed
Stefan Schaeckeler
sschaeck at cisco.com
Sat Jun 3 05:42:08 AEST 2017
Delete call of_node_put() on a node not claimed with
of_node_get() or by any other means such as for_each_child_of_node().
Signed-off-by: Stefan Schaeckeler <sschaeck at cisco.com>
---
drivers/hwmon/aspeed-pwm-tacho.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/hwmon/aspeed-pwm-tacho.c b/drivers/hwmon/aspeed-pwm-tacho.c
index 48403a2..d9161cd 100644
--- a/drivers/hwmon/aspeed-pwm-tacho.c
+++ b/drivers/hwmon/aspeed-pwm-tacho.c
@@ -802,7 +802,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;
--
2.9.3
More information about the openbmc
mailing list