Skip to contentSkip to conversation

ACPI / APEI: remove unnecessary platform_set_drvdata()

PATCH New Jingoo Han 1 participant 1 message Aug 22, 2013

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 ACPI / APEI: remove unnecessary platform_set_drvdata()

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.

---
 drivers/acpi/apei/ghes.c |    2 --
 1 file changed, 2 deletions(-)
drivers/acpi/apei/ghes.c +0 -2
index 8ec37bb..3f9771d 100644
@@ -1044,8 +1044,6 @@ static int ghes_remove(struct platform_device *ghes_dev)
 
 	kfree(ghes);
 
-	platform_set_drvdata(ghes_dev, NULL);
-
 	return 0;
 }
 
Signature · 1 line
1.7.10.4