Skip to content

Commit 36006cc

Browse files
Uwe Kleine-Königrafaeljw
authored andcommitted
ACPI: APEI: Drop unsetting driver data on remove
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 43d2748 commit 36006cc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/acpi/apei/ghes.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,8 +1444,6 @@ static int ghes_remove(struct platform_device *ghes_dev)
14441444

14451445
kfree(ghes);
14461446

1447-
platform_set_drvdata(ghes_dev, NULL);
1448-
14491447
return 0;
14501448
}
14511449

0 commit comments

Comments
 (0)