spi: zynq-qspi: Fix missing spi_unregister_controller when unload module
authorAxel Lin <axel.lin@ingics.com>
Sun, 18 Aug 2019 09:51:13 +0000 (17:51 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 20 Aug 2019 12:10:48 +0000 (13:10 +0100)
commit8eb2fd00f65a96143ed1535bdbf4ca4e129d30d1
tree3a9eb14204fda8a6e189c2e2b4ba2c97dc583e73
parent52718908c3f44b939a9934ef624e68457b21704f
spi: zynq-qspi: Fix missing spi_unregister_controller when unload module

Use devm_spi_register_controller to fix missing spi_unregister_controller
when unload module.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/20190818095113.2397-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-zynq-qspi.c