diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-11-08 19:00:02 +0300 |
---|---|---|
committer | Xu Yilun <yilun.xu@linux.intel.com> | 2024-11-11 05:43:21 +0300 |
commit | dbbd975cc6df04c375f01e19b13ec52e4d2408ba (patch) | |
tree | 1a965f338791d7169b6931a839ad6491fce7f785 /drivers/fpga/altera-fpga2sdram.c | |
parent | 9852d85ec9d492ebef56dc5f229416c925758edc (diff) | |
download | linux-dbbd975cc6df04c375f01e19b13ec52e4d2408ba.tar.xz |
fpga: 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/fpga 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 white space changes are included to make indention consistent.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20241108160002.252517-2-u.kleine-koenig@baylibre.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
-rw-r--r-- | drivers/fpga/altera-fpga2sdram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/altera-fpga2sdram.c b/drivers/fpga/altera-fpga2sdram.c index f4de3fea0b2d..e41492988dd6 100644 --- a/drivers/fpga/altera-fpga2sdram.c +++ b/drivers/fpga/altera-fpga2sdram.c @@ -152,7 +152,7 @@ MODULE_DEVICE_TABLE(of, altera_fpga_of_match); static struct platform_driver altera_fpga_driver = { .probe = alt_fpga_bridge_probe, - .remove_new = alt_fpga_bridge_remove, + .remove = alt_fpga_bridge_remove, .driver = { .name = "altera_fpga2sdram_bridge", .of_match_table = of_match_ptr(altera_fpga_of_match), |