Commit ea45f3f4 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Tzung-Bi Shih
Browse files

platform/chrome: 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/platform/chrome 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: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20241028082611.431723-2-u.kleine-koenig@baylibre.com


Signed-off-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
parent 9c41f371
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -415,7 +415,7 @@ static struct platform_driver cros_ec_chardev_driver = {
		.name = DRV_NAME,
	},
	.probe = cros_ec_chardev_probe,
	.remove_new = cros_ec_chardev_remove,
	.remove = cros_ec_chardev_remove,
	.id_table = cros_ec_chardev_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -582,7 +582,7 @@ static struct platform_driver cros_ec_debugfs_driver = {
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
	},
	.probe = cros_ec_debugfs_probe,
	.remove_new = cros_ec_debugfs_remove,
	.remove = cros_ec_debugfs_remove,
	.id_table = cros_ec_debugfs_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -608,7 +608,7 @@ static struct platform_driver cros_ec_lightbar_driver = {
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
	},
	.probe = cros_ec_lightbar_probe,
	.remove_new = cros_ec_lightbar_remove,
	.remove = cros_ec_lightbar_remove,
	.id_table = cros_ec_lightbar_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -783,7 +783,7 @@ static struct platform_driver cros_ec_lpc_driver = {
		.probe_type = PROBE_FORCE_SYNCHRONOUS,
	},
	.probe = cros_ec_lpc_probe,
	.remove_new = cros_ec_lpc_remove,
	.remove = cros_ec_lpc_remove,
};

static struct platform_device cros_ec_lpc_device = {
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ static struct platform_driver cros_ec_sysfs_driver = {
		.name = DRV_NAME,
	},
	.probe = cros_ec_sysfs_probe,
	.remove_new = cros_ec_sysfs_remove,
	.remove = cros_ec_sysfs_remove,
	.id_table = cros_ec_sysfs_id,
};

Loading