]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/platform: Switch back to struct platform_driver::remove()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 21 Oct 2024 10:39:53 +0000 (12:39 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 21 Oct 2024 15:20:30 +0000 (17:20 +0200)
commitcdccaab0631812e911553ff56683e9005cd3a51e
tree2d11b250530b208d4f489975c8a0efcec6b91c96
parent42f7652d3eb527d03665b09edac47f85fb600924
x86/platform: Switch back to struct platform_driver::remove()

After

  0edb555a65d1 ("platform: Make platform_driver::remove() return void")

.remove() is (again) the right callback to implement for platform drivers.

Convert all platform drivers below arch/x86 to use .remove(), with the
eventual goal to drop struct platform_driver::remove_new(). As .remove() and
.remove_new() have the same prototypes, conversion is done by just changing
the structure member name in the driver initializer.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241021103954.403577-2-u.kleine-koenig@baylibre.com
arch/x86/platform/iris/iris.c
arch/x86/platform/olpc/olpc-xo1-pm.c
arch/x86/platform/olpc/olpc-xo1-sci.c