From: Sachin Kamat Date: Wed, 29 May 2013 11:46:17 +0000 (+0000) Subject: ACPI / ghes: Remove redundant platform_set_drvdata() X-Git-Tag: next-20130607~73^2~13^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e06c7b88293ded321edf0f5160894111c9d84085;p=karo-tx-linux.git ACPI / ghes: 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index d668a8ae602b..e03c20e735a7 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -1011,8 +1011,6 @@ static int ghes_remove(struct platform_device *ghes_dev) kfree(ghes); - platform_set_drvdata(ghes_dev, NULL); - return 0; }