Skip to content
Snippets Groups Projects
Commit 4d58e732 authored by Stefan Schaeckeler's avatar Stefan Schaeckeler Committed by Guenter Roeck
Browse files

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: default avatarStefan Schaeckeler <sschaeck@cisco.com>
Fixes: 2d7a548a ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 7ed1c5e5
No related branches found
No related tags found
No related merge requests found
...@@ -808,7 +808,6 @@ static int aspeed_pwm_tacho_probe(struct platform_device *pdev) ...@@ -808,7 +808,6 @@ static int aspeed_pwm_tacho_probe(struct platform_device *pdev)
if (ret) if (ret)
return ret; return ret;
} }
of_node_put(np);
priv->groups[0] = &pwm_dev_group; priv->groups[0] = &pwm_dev_group;
priv->groups[1] = &fan_dev_group; priv->groups[1] = &fan_dev_group;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment