Commit 4e8e75f6 authored by Axel Lin's avatar Axel Lin Committed by Guenter Roeck

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 55bdee69
...@@ -110,7 +110,6 @@ static int pwm_fan_probe(struct platform_device *pdev) ...@@ -110,7 +110,6 @@ static int pwm_fan_probe(struct platform_device *pdev)
return PTR_ERR(ctx->pwm); return PTR_ERR(ctx->pwm);
} }
dev_set_drvdata(&pdev->dev, ctx);
platform_set_drvdata(pdev, ctx); platform_set_drvdata(pdev, ctx);
/* Set duty cycle to maximum allowed */ /* Set duty cycle to maximum allowed */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment