]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ACPI / ghes: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 29 May 2013 11:46:17 +0000 (11:46 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Jun 2013 21:16:09 +0000 (23:16 +0200)
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>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/ghes.c

index d668a8ae602bb4533b793911408cf138c047a4ce..e03c20e735a738c754570da62c191624c764f9c9 100644 (file)
@@ -1011,8 +1011,6 @@ static int ghes_remove(struct platform_device *ghes_dev)
 
        kfree(ghes);
 
-       platform_set_drvdata(ghes_dev, NULL);
-
        return 0;
 }