diff options
author | Uwe Kleine-König | 2022-06-03 23:07:50 +0200 |
---|---|---|
committer | Miquel Raynal | 2022-06-09 15:06:18 +0200 |
commit | 0057568b391488a5940635cbda562ea397bf4bdd (patch) | |
tree | 037c9733de3d10def288e420a1a24a088d30a97c /mm | |
parent | 0aaa0b5f84a0908fb2de30e8fea10811b154bf56 (diff) |
mtd: spear_smi: Don't skip cleanup after mtd_device_unregister() failed
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@pengutronix.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220603210758.148493-7-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions