[PATCH v2] mtd: rawnand: atmel: Warn about failure to unregister mtd device

Miquel Raynal miquel.raynal at bootlin.com
Thu Jun 9 06:09:09 PDT 2022


On Tue, 2022-06-07 at 06:25:03 UTC, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= wrote:
> The Linux device core doesn't intend remove callbacks to fail. If an
> error code is returned the device is removed anyhow. So wail loudly if
> the atmel specific remove callback fails and return 0 anyhow to suppress
> the generic (and little helpful) error message by the device core.
> 
> This is a preparation for making platform remove callbacks return void.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list