Skip to content

Commit

Permalink
ACPI: APEI: Drop unsetting driver data on remove
Browse files Browse the repository at this point in the history
Since commit 0998d06 ("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>
  • Loading branch information
Uwe Kleine-König authored and Rafael J. Wysocki committed Oct 28, 2022
1 parent 43d2748 commit 36006cc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/acpi/apei/ghes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,8 +1444,6 @@ static int ghes_remove(struct platform_device *ghes_dev)

kfree(ghes);

platform_set_drvdata(ghes_dev, NULL);

return 0;
}

Expand Down

0 comments on commit 36006cc

Please sign in to comment.