aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-microchip-core.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2024-09-25 11:35:00 +0000
committerMark Brown <[email protected]>2024-09-29 23:12:23 +0000
commit494c3dc467768782f93f1433650c56b08feb54ea (patch)
treea81c666769391249eb47ddc34fd2cb6e891c0352 /drivers/spi/spi-microchip-core.c
parentspi: slave-mt27xx: Call clk_disable_unprepare() only once in mtk_spi_slave_pr... (diff)
downloadkernel-494c3dc467768782f93f1433650c56b08feb54ea.tar.gz
kernel-494c3dc467768782f93f1433650c56b08feb54ea.zip
spi: 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/spi 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. The change for the spi-npcm-fiu stands out in the diffstat because the inconsistent formatting style of the platform_driver initializer is fixed to match the other struct initializer in the file. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi-microchip-core.c')
-rw-r--r--drivers/spi/spi-microchip-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-microchip-core.c b/drivers/spi/spi-microchip-core.c
index 7c1a9a985373..5b6af55855ef 100644
--- a/drivers/spi/spi-microchip-core.c
+++ b/drivers/spi/spi-microchip-core.c
@@ -622,7 +622,7 @@ static struct platform_driver mchp_corespi_driver = {
.pm = MICROCHIP_SPI_PM_OPS,
.of_match_table = of_match_ptr(mchp_corespi_dt_ids),
},
- .remove_new = mchp_corespi_remove,
+ .remove = mchp_corespi_remove,
};
module_platform_driver(mchp_corespi_driver);
MODULE_DESCRIPTION("Microchip coreSPI SPI controller driver");