hwmon: (abituguru3) Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 3 May 2013 09:43:36 +0000 (15:13 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 21 Jun 2013 17:05:03 +0000 (10:05 -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: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/abituguru3.c

index 1d2da31c27c64194169a41ad44e5a18252b67c77..0cac8c0b001af817b1df36d4d6a780cb673dbc19 100644 (file)
@@ -1079,7 +1079,6 @@ static int abituguru3_remove(struct platform_device *pdev)
        int i;
        struct abituguru3_data *data = platform_get_drvdata(pdev);
 
-       platform_set_drvdata(pdev, NULL);
        hwmon_device_unregister(data->hwmon_dev);
        for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++)
                device_remove_file(&pdev->dev, &data->sysfs_attr[i].dev_attr);
This page took 0.026301 seconds and 5 git commands to generate.