mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
spi: Switch back to struct platform_driver::remove()
After commit 0edb555a65 ("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 <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20240925113501.25208-2-u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
1 parent
610442f85c
commit
494c3dc467
88 files changed
+92
-92
No files matched your search
@@ -840,7 +840,7 @@ static struct platform_driver atmel_qspi_driver = {
|
||||
.pm = pm_ptr(&atmel_qspi_pm_ops),
|
||||
},
|
||||
.probe = atmel_qspi_probe,
|
||||
.remove_new = atmel_qspi_remove,
|
||||
.remove = atmel_qspi_remove,
|
||||
};
|
||||
module_platform_driver(atmel_qspi_driver);
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ static struct platform_driver ar934x_spi_driver = {
|
||||
.of_match_table = ar934x_spi_match,
|
||||
},
|
||||
.probe = ar934x_spi_probe,
|
||||
.remove_new = ar934x_spi_remove,
|
||||
.remove = ar934x_spi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(ar934x_spi_driver);
|
||||
|
||||
@@ -1189,7 +1189,7 @@ MODULE_DEVICE_TABLE(of, aspeed_spi_matches);
|
||||
|
||||
static struct platform_driver aspeed_spi_driver = {
|
||||
.probe = aspeed_spi_probe,
|
||||
.remove_new = aspeed_spi_remove,
|
||||
.remove = aspeed_spi_remove,
|
||||
.driver = {
|
||||
.name = DEVICE_NAME,
|
||||
.of_match_table = aspeed_spi_matches,
|
||||
|
||||
@@ -650,7 +650,7 @@ static struct platform_driver at91_usart_spi_driver = {
|
||||
.pm = &at91_usart_spi_pm_ops,
|
||||
},
|
||||
.probe = at91_usart_spi_probe,
|
||||
.remove_new = at91_usart_spi_remove,
|
||||
.remove = at91_usart_spi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(at91_usart_spi_driver);
|
||||
|
||||
@@ -253,7 +253,7 @@ MODULE_DEVICE_TABLE(of, ath79_spi_of_match);
|
||||
|
||||
static struct platform_driver ath79_spi_driver = {
|
||||
.probe = ath79_spi_probe,
|
||||
.remove_new = ath79_spi_remove,
|
||||
.remove = ath79_spi_remove,
|
||||
.shutdown = ath79_spi_shutdown,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
|
||||
@@ -1781,7 +1781,7 @@ static struct platform_driver atmel_spi_driver = {
|
||||
.of_match_table = atmel_spi_dt_ids,
|
||||
},
|
||||
.probe = atmel_spi_probe,
|
||||
.remove_new = atmel_spi_remove,
|
||||
.remove = atmel_spi_remove,
|
||||
};
|
||||
module_platform_driver(atmel_spi_driver);
|
||||
|
||||
|
||||
@@ -940,7 +940,7 @@ MODULE_ALIAS("platform:au1550-spi");
|
||||
|
||||
static struct platform_driver au1550_spi_drv = {
|
||||
.probe = au1550_spi_probe,
|
||||
.remove_new = au1550_spi_remove,
|
||||
.remove = au1550_spi_remove,
|
||||
.driver = {
|
||||
.name = "au1550-spi",
|
||||
},
|
||||
|
||||
@@ -1435,7 +1435,7 @@ static struct platform_driver bcm2835_spi_driver = {
|
||||
.of_match_table = bcm2835_spi_match,
|
||||
},
|
||||
.probe = bcm2835_spi_probe,
|
||||
.remove_new = bcm2835_spi_remove,
|
||||
.remove = bcm2835_spi_remove,
|
||||
.shutdown = bcm2835_spi_remove,
|
||||
};
|
||||
module_platform_driver(bcm2835_spi_driver);
|
||||
|
||||
@@ -577,7 +577,7 @@ static struct platform_driver bcm2835aux_spi_driver = {
|
||||
.of_match_table = bcm2835aux_spi_match,
|
||||
},
|
||||
.probe = bcm2835aux_spi_probe,
|
||||
.remove_new = bcm2835aux_spi_remove,
|
||||
.remove = bcm2835aux_spi_remove,
|
||||
};
|
||||
module_platform_driver(bcm2835aux_spi_driver);
|
||||
|
||||
|
||||
@@ -944,7 +944,7 @@ static struct platform_driver bcm63xx_hsspi_driver = {
|
||||
.of_match_table = bcm63xx_hsspi_of_match,
|
||||
},
|
||||
.probe = bcm63xx_hsspi_probe,
|
||||
.remove_new = bcm63xx_hsspi_remove,
|
||||
.remove = bcm63xx_hsspi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(bcm63xx_hsspi_driver);
|
||||
|
||||
@@ -656,7 +656,7 @@ static struct platform_driver bcm63xx_spi_driver = {
|
||||
},
|
||||
.id_table = bcm63xx_spi_dev_match,
|
||||
.probe = bcm63xx_spi_probe,
|
||||
.remove_new = bcm63xx_spi_remove,
|
||||
.remove = bcm63xx_spi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(bcm63xx_spi_driver);
|
||||
|
||||
@@ -633,7 +633,7 @@ static struct platform_driver bcmbca_hsspi_driver = {
|
||||
.of_match_table = bcmbca_hsspi_of_match,
|
||||
},
|
||||
.probe = bcmbca_hsspi_probe,
|
||||
.remove_new = bcmbca_hsspi_remove,
|
||||
.remove = bcmbca_hsspi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(bcmbca_hsspi_driver);
|
||||
|
||||
@@ -28,7 +28,7 @@ static void brcmstb_qspi_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver brcmstb_qspi_driver = {
|
||||
.probe = brcmstb_qspi_probe,
|
||||
.remove_new = brcmstb_qspi_remove,
|
||||
.remove = brcmstb_qspi_remove,
|
||||
.driver = {
|
||||
.name = "brcmstb_qspi",
|
||||
.pm = &bcm_qspi_pm_ops,
|
||||
|
||||
@@ -2112,7 +2112,7 @@ MODULE_DEVICE_TABLE(of, cqspi_dt_ids);
|
||||
|
||||
static struct platform_driver cqspi_platform_driver = {
|
||||
.probe = cqspi_probe,
|
||||
.remove_new = cqspi_remove,
|
||||
.remove = cqspi_remove,
|
||||
.driver = {
|
||||
.name = CQSPI_NAME,
|
||||
.pm = pm_ptr(&cqspi_dev_pm_ops),
|
||||
|
||||
@@ -804,7 +804,7 @@ MODULE_DEVICE_TABLE(of, cdns_spi_of_match);
|
||||
/* cdns_spi_driver - This structure defines the SPI subsystem platform driver */
|
||||
static struct platform_driver cdns_spi_driver = {
|
||||
.probe = cdns_spi_probe,
|
||||
.remove_new = cdns_spi_remove,
|
||||
.remove = cdns_spi_remove,
|
||||
.driver = {
|
||||
.name = CDNS_SPI_NAME,
|
||||
.of_match_table = cdns_spi_of_match,
|
||||
|
||||
@@ -90,7 +90,7 @@ static struct platform_driver octeon_spi_driver = {
|
||||
.of_match_table = octeon_spi_match,
|
||||
},
|
||||
.probe = octeon_spi_probe,
|
||||
.remove_new = octeon_spi_remove,
|
||||
.remove = octeon_spi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(octeon_spi_driver);
|
||||
|
||||
@@ -502,7 +502,7 @@ static struct platform_driver mcfqspi_driver = {
|
||||
.driver.name = DRIVER_NAME,
|
||||
.driver.pm = &mcfqspi_pm,
|
||||
.probe = mcfqspi_probe,
|
||||
.remove_new = mcfqspi_remove,
|
||||
.remove = mcfqspi_remove,
|
||||
};
|
||||
module_platform_driver(mcfqspi_driver);
|
||||
|
||||
|
||||
@@ -1039,7 +1039,7 @@ static struct platform_driver davinci_spi_driver = {
|
||||
.of_match_table = of_match_ptr(davinci_spi_of_match),
|
||||
},
|
||||
.probe = davinci_spi_probe,
|
||||
.remove_new = davinci_spi_remove,
|
||||
.remove = davinci_spi_remove,
|
||||
};
|
||||
module_platform_driver(davinci_spi_driver);
|
||||
|
||||
|
||||
@@ -871,7 +871,7 @@ static struct platform_driver spi_dln2_driver = {
|
||||
.pm = &dln2_spi_pm,
|
||||
},
|
||||
.probe = dln2_spi_probe,
|
||||
.remove_new = dln2_spi_remove,
|
||||
.remove = dln2_spi_remove,
|
||||
};
|
||||
module_platform_driver(spi_dln2_driver);
|
||||
|
||||
|
||||
@@ -317,7 +317,7 @@ MODULE_DEVICE_TABLE(of, dw_spi_bt1_of_match);
|
||||
|
||||
static struct platform_driver dw_spi_bt1_driver = {
|
||||
.probe = dw_spi_bt1_probe,
|
||||
.remove_new = dw_spi_bt1_remove,
|
||||
.remove = dw_spi_bt1_remove,
|
||||
.driver = {
|
||||
.name = "bt1-sys-ssi",
|
||||
.of_match_table = dw_spi_bt1_of_match,
|
||||
|
||||
Loaded 20 of 88 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user