]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: ntc_thermistor: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 3 May 2013 09:43:39 +0000 (15:13 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 20 May 2013 13:29:46 +0000 (06:29 -0700)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ntc_thermistor.c

index d6d640a733d5425730cbd68cc15fbcfe1c229891..830a842d796af833c0b6a04785e1eff09b73599d 100644 (file)
@@ -514,7 +514,6 @@ static int ntc_thermistor_remove(struct platform_device *pdev)
        hwmon_device_unregister(data->hwmon_dev);
        sysfs_remove_group(&data->dev->kobj, &ntc_attr_group);
        ntc_iio_channel_release(pdata);
-       platform_set_drvdata(pdev, NULL);
 
        return 0;
 }