]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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>
Mon, 20 May 2013 13:29:45 +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: 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);