On Tue, Sep 22, 2020 at 01:07:15PM +0300, Vladimir Oltean wrote: > Does it help if you call spi_controller_get(dspi->ctlr) at the beginning > of dspi_remove, and spi_controller_put(dspi->ctlr) at the end of it? That'd be another way to do it but TBH it feels pretty contorted. Just allocating separate driver data seems a lot less trouble, or taking copies of fields that are needed to clean up before freeing the controller.
Attachment:
signature.asc
Description: PGP signature