[PATCH] drivers: hwmon: aspeed fan driver: call of_node_put() on a node not claimed

Guenter Roeck linux at roeck-us.net
Sat Jun 3 20:58:55 AEST 2017


On Fri, Jun 02, 2017 at 12:42:08PM -0700, Stefan Schaeckeler wrote:
> 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>

Applied, but please cc linux-hwmon at vger.kernel.org in future patches.
Also please watch out for the subject line commonly used in hwmon drivers.

Thanks,
Guenter

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