hwmon: (pwm-fan) Remove duplicate dev_set_drvdata call
PATCH 1/2 hwmon: (pwm-fan) Remove duplicate dev_set_drvdata call
The dev_set_drvdata() call is equivalent to the platform_set_drvdata() call in next line.
Signed-off-by Axel Lin <[email protected]>
--- drivers/hwmon/pwm-fan.c | 1 - 1 file changed, 1 deletion(-)
drivers/hwmon/pwm-fan.c +0 -1
@@ -110,7 +110,6 @@ static int pwm_fan_probe(struct platform_device *pdev)return PTR_ERR (ctx->pwm); } -dev_set_drvdata (&pdev->dev, ctx);platform_set_drvdata (pdev, ctx);/* Set duty cycle to maximum allowed */
Signature · 9 lines
1.9.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 5 lines · Axel Lin
The
dev_set_drvdata()call is equivalent to theplatform_set_drvdata()call in next line.Signed-off-by Axel Lin <[email protected]>---
Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors