From: Sourav Poddar Date: Tue, 19 Nov 2013 13:07:16 +0000 (+0530) Subject: spi/qspi: Fix qspi remove path. X-Git-Tag: v3.13-rc3~27^2^7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbcabb7a300bf5ab868c632048889a933e7cdae5;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed