diff options
| author | Uwe Kleine-König <[email protected]> | 2024-11-08 16:00:02 +0000 |
|---|---|---|
| committer | Xu Yilun <[email protected]> | 2024-11-11 02:43:21 +0000 |
| commit | dbbd975cc6df04c375f01e19b13ec52e4d2408ba (patch) | |
| tree | 1a965f338791d7169b6931a839ad6491fce7f785 /drivers/fpga/of-fpga-region.c | |
| parent | Linux 6.12-rc1 (diff) | |
| download | kernel-dbbd975cc6df04c375f01e19b13ec52e4d2408ba.tar.gz kernel-dbbd975cc6df04c375f01e19b13ec52e4d2408ba.zip | |
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 <[email protected]>
Acked-by: Xu Yilun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Xu Yilun <[email protected]>
Diffstat (limited to 'drivers/fpga/of-fpga-region.c')
| -rw-r--r-- | drivers/fpga/of-fpga-region.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/of-fpga-region.c b/drivers/fpga/of-fpga-region.c index 8526a5a86f0c..43db4bb77138 100644 --- a/drivers/fpga/of-fpga-region.c +++ b/drivers/fpga/of-fpga-region.c @@ -436,7 +436,7 @@ static void of_fpga_region_remove(struct platform_device *pdev) static struct platform_driver of_fpga_region_driver = { .probe = of_fpga_region_probe, - .remove_new = of_fpga_region_remove, + .remove = of_fpga_region_remove, .driver = { .name = "of-fpga-region", .of_match_table = of_match_ptr(fpga_region_of_match), |
