summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pwm-fan.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-07-25 05:12:26 +0200
committerGuenter Roeck <linux@roeck-us.net>2014-08-04 16:01:40 +0200
commit4e8e75f6a4c977e2e9caffa3ceab0f7e559cb825 (patch)
tree5a2ee2a240ae33966f822ea29325c59c2e9230a1 /drivers/hwmon/pwm-fan.c
parenthwmon: (nct6775) Remove num_attr_groups from struct nct6775_data (diff)
downloadlinux-4e8e75f6a4c977e2e9caffa3ceab0f7e559cb825.tar.xz
linux-4e8e75f6a4c977e2e9caffa3ceab0f7e559cb825.zip
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>
Diffstat (limited to 'drivers/hwmon/pwm-fan.c')
-rw-r--r--drivers/hwmon/pwm-fan.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c
index af30dd63de6a..823c877a1ec0 100644
--- a/drivers/hwmon/pwm-fan.c
+++ b/drivers/hwmon/pwm-fan.c
@@ -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 */