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: 2d7a548a3e ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Stefan Schaeckeler 2017-06-02 12:42:08 -07:00 committed by Guenter Roeck
parent 7ed1c5e5dd
commit 4d58e7329f

View File

@ -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;