Re: [PATCH v1] spi: Don't have controller clean up spi device before driver unbind

From: Mark Brown
Date: Wed May 05 2021 - 08:39:21 EST


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.

Attachment: signature.asc
Description: PGP signature