[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230513210021.gver7ibozrmmbm4j@mobilestation>
Date: Sun, 14 May 2023 00:00:21 +0300
From: Serge Semin <fancer.lancer@...il.com>
To: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Cc: Damien Le Moal <dlemoal@...nel.org>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Matthias Brugger <matthias.bgg@...il.com>,
Hans de Goede <hdegoede@...hat.com>,
Jens Axboe <axboe@...nel.dk>,
Patrice Chotard <patrice.chotard@...s.st.com>,
Chen-Yu Tsai <wens@...e.org>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Samuel Holland <samuel@...lland.org>,
Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
Sergey Shtylyov <s.shtylyov@....ru>,
"open list:LIBATA SUBSYSTEM" <linux-ide@...r.kernel.org>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-sunxi@...ts.linux.dev,
linux-tegra@...r.kernel.org
Subject: Re: [PATCH] ata: libata: Make ata_platform_remove_one return void
On Fri, May 12, 2023 at 10:46:46PM +0200, Uwe Kleine-König wrote:
> 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@...gutronix.de>
> ---
[...]
> drivers/ata/ahci_dwc.c | 2 +-
[...]
> diff --git a/drivers/ata/ahci_dwc.c b/drivers/ata/ahci_dwc.c
> index 4bfbb09cdc02..9604a2f6ed48 100644
> --- a/drivers/ata/ahci_dwc.c
> +++ b/drivers/ata/ahci_dwc.c
> @@ -478,7 +478,7 @@ MODULE_DEVICE_TABLE(of, ahci_dwc_of_match);
>
> static struct platform_driver ahci_dwc_driver = {
> .probe = ahci_dwc_probe,
> - .remove = ata_platform_remove_one,
> + .remove_new = ata_platform_remove_one,
> .shutdown = ahci_platform_shutdown,
> .driver = {
> .name = DRV_NAME,
For DWC AHCI SATA
Acked-by: Serge Semin <fancer.lancer@...il.com>
-Serge(y)
[...]
> --
> 2.39.2
>
Powered by blists - more mailing lists