From 4e8e75f6a4c977e2e9caffa3ceab0f7e559cb825 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 25 Jul 2014 11:12:26 +0800 Subject: [PATCH] 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 Signed-off-by: Guenter Roeck --- drivers/hwmon/pwm-fan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c index af30dd6..823c877 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 */ -- 2.7.4