diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-10-13 08:44:58 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-10-28 18:38:56 +0200 |
commit | 36006ccb6bc7d8c7937277f985efddf658d7a1f9 (patch) | |
tree | 2612f546444984290701e1d9ff21228ca3e8d1f1 /drivers/acpi/apei | |
parent | 43d2748394c3feb86c0c771466f5847e274fc043 (diff) | |
download | lwn-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.c | 2 |
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; } |