diff options
| author | Uwe Kleine-König <[email protected]> | 2024-10-17 07:38:03 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2024-10-17 09:39:32 +0000 |
| commit | 3ea5eb68b9d624935108b5e696859304edfac202 (patch) | |
| tree | de2e3a3374f0148ee300f6035432a5a58d0988f3 /drivers/platform/x86/amd/pmc/pmc.c | |
| parent | x86: acer-wmi: remove unused macros (diff) | |
| download | kernel-3ea5eb68b9d624935108b5e696859304edfac202.tar.gz kernel-3ea5eb68b9d624935108b5e696859304edfac202.zip | |
platform/x86: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.
Convert all platform drivers below drivers/platform/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.
While touching these files, make indention of the struct initializer
consistent in several files.
Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/amd/pmc/pmc.c')
| -rw-r--r-- | drivers/platform/x86/amd/pmc/pmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/amd/pmc/pmc.c b/drivers/platform/x86/amd/pmc/pmc.c index bbb8edb62e00..71abc6276e89 100644 --- a/drivers/platform/x86/amd/pmc/pmc.c +++ b/drivers/platform/x86/amd/pmc/pmc.c @@ -1156,7 +1156,7 @@ static struct platform_driver amd_pmc_driver = { .pm = pm_sleep_ptr(&amd_pmc_pm), }, .probe = amd_pmc_probe, - .remove_new = amd_pmc_remove, + .remove = amd_pmc_remove, }; module_platform_driver(amd_pmc_driver); |
