[PATCH 01/14] mtd: hyperbus: Make hyperbus_unregister_device() return void

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


On Fri, 2022-06-03 at 21:07:45 UTC, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= wrote:
> The only thing that could theoretically fail in that function is
> mtd_device_unregister(). However it's not supposed to fail and when
> used correctly it doesn't. So wail loudly if it does anyhow.
> 
> This matches how other drivers (e.g. nand/raw/nandsim.c) use
> mtd_device_unregister().
> 
> 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