summaryrefslogtreecommitdiff
path: root/drivers/acpi/apei
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-10-13 08:44:58 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-10-28 18:38:56 +0200
commit36006ccb6bc7d8c7937277f985efddf658d7a1f9 (patch)
tree2612f546444984290701e1d9ff21228ca3e8d1f1 /drivers/acpi/apei
parent43d2748394c3feb86c0c771466f5847e274fc043 (diff)
downloadlwn-36006ccb6bc7d8c7937277f985efddf658d7a1f9.tar.gz
lwn-36006ccb6bc7d8c7937277f985efddf658d7a1f9.zip
ACPI: APEI: Drop unsetting driver data on remove
Since commit 0998d0631001 ("device-core: Ensure drvdata = NULL when no driver is bound") the driver core cares for cleaning driver data, so don't do it in the driver, too. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/apei')
-rw-r--r--drivers/acpi/apei/ghes.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index 9952f3a792ba..161bef9a73f9 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -1444,8 +1444,6 @@ static int ghes_remove(struct platform_device *ghes_dev)
kfree(ghes);
- platform_set_drvdata(ghes_dev, NULL);
-
return 0;
}