]> git.baikalelectronics.ru Git - kernel.git/commit
spi/qspi: Fix qspi remove path.
authorSourav Poddar <sourav.poddar@ti.com>
Tue, 19 Nov 2013 13:07:16 +0000 (18:37 +0530)
committerMark Brown <broonie@linaro.org>
Sun, 24 Nov 2013 14:15:11 +0000 (14:15 +0000)
commit2823e14e266c4e1028d153e297445e358307a669
treea608e2a5c839263798beaa0d6bf6dad68c23806e
parentd23589e196adbef5302f35fe43324e78a78f4f10
spi/qspi: Fix qspi remove path.

There is a bug in qspi removal path, as a result of which
qspi cannot be removed when used as a module. The patch
solves the bug and qspi can be removed cleanly.

The bugs fixed are:
-pm_runtime used around register access.
- pm_runtime_disable need to be done before removal.
- spi_unregister_master need to be called to unregister
   the spi device.
Tested on DRA7 board.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-ti-qspi.c