[PATCH 03/14] mtd: powernv_flash: Warn about failure to unregister mtd device
Miquel Raynal
miquel.raynal at bootlin.com
Thu Jun 9 23:09:59 AEST 2022
On Fri, 2022-06-03 at 21:07:47 UTC, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= wrote:
> mtd_device_unregister() shouldn't fail. Wail loudly if it does anyhow.
>
> This matches how other drivers (e.g. nand/raw/nandsim.c) use
> mtd_device_unregister().
>
> By returning 0 in the platform remove callback a generic error message
> by the device core is suppressed, nothing else changes.
>
> 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 Linuxppc-dev
mailing list