diff options
author | 2023-05-12 22:46:46 +0200 | |
---|---|---|
committer | 2023-05-15 06:49:39 +0900 | |
commit | a7eb54d44045d424624d3ac7d02feb8ef96744ec (patch) | |
tree | ed5af92dcf8540e6a6ffd097180f0817ad99831f /drivers/ata/sata_highbank.c | |
parent | Linux 6.4-rc2 (diff) | |
download | linux-a7eb54d44045d424624d3ac7d02feb8ef96744ec.tar.gz linux-a7eb54d44045d424624d3ac7d02feb8ef96744ec.tar.bz2 linux-a7eb54d44045d424624d3ac7d02feb8ef96744ec.zip |
ata: libata: Make ata_platform_remove_one return void
The function returned zero unconditionally, so the function returning an
int is something between useless and irritating. With the goal to make
platform drivers' remove function return void, it's helpful to convert
the function accordingly. This converts several drivers to the new
.remove_new callback that was introduced to smoothen the platform driver
conversion.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'drivers/ata/sata_highbank.c')
-rw-r--r-- | drivers/ata/sata_highbank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index 8237ece4a46f..d6b324d03e59 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c @@ -614,7 +614,7 @@ static SIMPLE_DEV_PM_OPS(ahci_highbank_pm_ops, ahci_highbank_suspend, ahci_highbank_resume); static struct platform_driver ahci_highbank_driver = { - .remove = ata_platform_remove_one, + .remove_new = ata_platform_remove_one, .driver = { .name = "highbank-ahci", .of_match_table = ahci_of_match, |