diff mbox

ACPI / APEI: remove unnecessary platform_set_drvdata()

Message ID 001401ce9ed9$83d74c60$8b85e520$%han@samsung.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jingoo Han Aug. 22, 2013, 1:47 a.m. UTC
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/acpi/apei/ghes.c |    2 --
 1 file changed, 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index 8ec37bb..3f9771d 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -1044,8 +1044,6 @@  static int ghes_remove(struct platform_device *ghes_dev)
 
 	kfree(ghes);
 
-	platform_set_drvdata(ghes_dev, NULL);
-
 	return 0;
 }