You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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 <axel.lin@ingics.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user