On Fri, 2022-06-03 at 21:07:54 UTC, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= wrote: > If mtd_device_unregister() fails (which it doesn't when used correctly), > the resources bound by the nand chip should be freed anyhow as returning > an error value doesn't prevent the device getting unbound. > > Instead use WARN_ON on the return value similar to how other drivers do > it. > > This is a preparation for making platform remove callbacks return void. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel