Unverified Commit 1b553547 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown
Browse files

regulator: Switch back to struct platform_driver::remove()



After commit 0edb555a ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.

Convert all platform drivers below drivers/regulator 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.

A few whitespace changes are done en passant to make indention
consistent.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/ab85510f83fa901e44d5d563fe6e768054229bfe.1731398433.git.u.kleine-koenig@baylibre.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d1bc2d5c
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -375,7 +375,7 @@ static int madera_ldo1_probe(struct platform_device *pdev)

static struct platform_driver arizona_ldo1_driver = {
	.probe = arizona_ldo1_probe,
	.remove_new = arizona_ldo1_remove,
	.remove = arizona_ldo1_remove,
	.driver = {
		.name = "arizona-ldo1",
		.probe_type = PROBE_FORCE_SYNCHRONOUS,
@@ -384,7 +384,7 @@ static struct platform_driver arizona_ldo1_driver = {

static struct platform_driver madera_ldo1_driver = {
	.probe = madera_ldo1_probe,
	.remove_new = arizona_ldo1_remove,
	.remove = arizona_ldo1_remove,
	.driver = {
		.name = "madera-ldo1",
		.probe_type = PROBE_FORCE_SYNCHRONOUS,
+1 −1
Original line number Diff line number Diff line
@@ -356,7 +356,7 @@ static struct platform_driver bd9571mwv_regulator_driver = {
		.pm = DEV_PM_OPS,
	},
	.probe = bd9571mwv_regulator_probe,
	.remove_new = bd9571mwv_regulator_remove,
	.remove = bd9571mwv_regulator_remove,
	.id_table = bd9571mwv_regulator_id_table,
};
module_platform_driver(bd9571mwv_regulator_driver);
+1 −1
Original line number Diff line number Diff line
@@ -480,7 +480,7 @@ static struct platform_driver db8500_regulator_driver = {
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
	},
	.probe = db8500_regulator_probe,
	.remove_new = db8500_regulator_remove,
	.remove = db8500_regulator_remove,
};

static int __init db8500_regulator_init(void)
+1 −1
Original line number Diff line number Diff line
@@ -280,7 +280,7 @@ MODULE_DEVICE_TABLE(of, stm32_vrefbuf_of_match);

static struct platform_driver stm32_vrefbuf_driver = {
	.probe = stm32_vrefbuf_probe,
	.remove_new = stm32_vrefbuf_remove,
	.remove = stm32_vrefbuf_remove,
	.driver = {
		.name  = "stm32-vrefbuf",
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ MODULE_DEVICE_TABLE(of, uniphier_regulator_match);

static struct platform_driver uniphier_regulator_driver = {
	.probe = uniphier_regulator_probe,
	.remove_new = uniphier_regulator_remove,
	.remove = uniphier_regulator_remove,
	.driver = {
		.name  = "uniphier-regulator",
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
Loading