On Wed, May 05, 2021 at 07:48:38AM +0200, Lukas Wunner wrote: > As I've written yesterday, calling spi_cleanup() in > spi_unregister_device() should be fine if you move it to the end > of the function, but before the final put_device(). For that, > you need to open code the calls to device_del() and put_device() > that happen in device_unregister() so far. Indeed.