spi: qup: Fix order of spi_register_master
authorAndy Gross <agross@codeaurora.org>
Thu, 12 Jun 2014 19:34:11 +0000 (14:34 -0500)
committerMark Brown <broonie@linaro.org>
Sat, 21 Jun 2014 10:11:54 +0000 (11:11 +0100)
commit045c243a511c8b688d36659cc3f781e84e9c2ddb
tree5812f2a134c1b8d551313f2f155dd357205e7cce
parent7171511eaec5bf23fb06078f59784a3a0626b38f
spi: qup: Fix order of spi_register_master

This patch moves the devm_spi_register_master below the initialization of the
runtime_pm.  If done in the wrong order, the spi_register_master fails if any
probed slave devices issue SPI transactions.

Signed-off-by: Andy Gross <agross@codeaurora.org>
Acked-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-qup.c