Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: mxic: fix controller deregistration

Make sure to deregister the controller before disabling underlying
resources like clocks (via runtime pm) during driver unbind.

Fixes: b942d80b0a39 ("spi: Add MXIC controller driver")
Cc: stable@vger.kernel.org # 5.0: cc53711b2191
Cc: stable@vger.kernel.org # 5.0
Cc: Mason Yang <masonccyang@mxic.com.tw>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260414134319.978196-6-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Johan Hovold and committed by
Mark Brown
adbc595e 706b3dc2

+2 -1
+2 -1
drivers/spi/spi-mxic.c
··· 832 832 struct spi_controller *host = platform_get_drvdata(pdev); 833 833 struct mxic_spi *mxic = spi_controller_get_devdata(host); 834 834 835 + spi_unregister_controller(host); 836 + 835 837 pm_runtime_disable(&pdev->dev); 836 838 mxic_spi_mem_ecc_remove(mxic); 837 - spi_unregister_controller(host); 838 839 } 839 840 840 841 static const struct of_device_id mxic_spi_of_ids[] = {