spi: imx: Fix cleanup in remove and convert to
authorMark Brown <broonie@kernel.org>
Mon, 20 Mar 2023 18:49:58 +0000 (18:49 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 20 Mar 2023 18:49:58 +0000 (18:49 +0000)
commit0df9f6cf9576558fb1aba8527a66775e96e2bd2b
treeb681155abfce7b4dbcabf7e70348ff8c931e59c8
parenta0dcd1ff96293775c3ec30ae0091713982c5c24c
parent423e548127223d597bb65a149ebcb3c50ea08846
spi: imx: Fix cleanup in remove and convert to

Merge series from Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:

This small series converts the spi-imx driver to .remove_new(). The
motivation for this tree-wide effort are drivers that don't properly
cleanup and return an error code. This is broken as this results in
resource leaks. The spi-imx driver is such a driver. The idea is that if
the remove callback returns void it's obvious that an early error return
is wrong.