Changes since v1:
* use devm_spi_register_controller() instead of calling
spi_unregister_controller() in the remove function
Thanks
Volker
Volker Haspel (1):
spi: spi-fsl-qspi: use devm_spi_register_controller
drivers/spi/spi-fsl-qspi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
The driver does not clearly unregister the spi controller.
Therefore calling an unbind and bind again will end up in a
Kernel crash.
The function devm_spi_register_controller will automatically
be unregister the SPI device.
Signed-off-by: Volker Haspel
Signed-off-by: John Ogness
---
drivers
On Mon, 11 Mar 2019 17:03:34 +
Mark Brown wrote:
> On Thu, Mar 07, 2019 at 11:30:08AM +0100, Volker Haspel wrote:
> > The driver does not clearly unregister the spi controller.
> > Therefore calling an unbind and bind again will end up in a
> > Kernel crash.
>
The driver does not clearly unregister the spi controller.
Therefore calling an unbind and bind again will end up in a
Kernel crash.
Each driver who calls spi_register_controller() in the probe function
has to call spi_unregister_controller() too.
Signed-off-by: Volker Haspel
Signed-off-by: John
4 matches
Mail list logo