From: Mark Brown Date: Fri, 17 Mar 2023 17:43:18 +0000 (+0000) Subject: spi: atmel-quadspi: Convert to platform remove X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=864f0513a377184e12aa650089c9af71ba36c6e9;p=linux.git spi: atmel-quadspi: Convert to platform remove Merge series from Uwe Kleine-König : This series converts the atmel-quadspi driver to use the .remove_new() callback that doesn't return an int but void. The motivation is to not give driver authors a reason to (wrongly) believe that returning an error code was sensible error handling. In fact the spi core only emits a warning message in this case and otherwise continues as if the return value was zero. This usually yields resource leaks that sometimes can lead to exceptions later on. The atmel-quadspi driver is one of these drivers that got error handling wrong, this is fixed here and in the last patch the driver is converted to .remove_new() with the eventual goal to change .remove() to return void once all drivers are converted this way. --- 864f0513a377184e12aa650089c9af71ba36c6e9