hwmon: (pwm-fan) Remove duplicate dev_set_drvdata call
authorAxel Lin <axel.lin@ingics.com>
Fri, 25 Jul 2014 03:12:26 +0000 (11:12 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:40 +0000 (07:01 -0700)
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>
drivers/hwmon/pwm-fan.c

index af30dd6..823c877 100644 (file)
@@ -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 */