From: Sachin Kamat Date: Fri, 3 May 2013 09:43:36 +0000 (+0530) Subject: hwmon: abituguru3: Remove redundant platform_set_drvdata() X-Git-Tag: next-20130619~83^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6323afcd650e51f32931839e6bb4a97785b38025;p=karo-tx-linux.git hwmon: abituguru3: Remove redundant platform_set_drvdata() 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 Cc: Hans de Goede Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/abituguru3.c b/drivers/hwmon/abituguru3.c index 1d2da31c27c6..0cac8c0b001a 100644 --- a/drivers/hwmon/abituguru3.c +++ b/drivers/hwmon/abituguru3.c @@ -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);