spi: pxa2xx: Disable runtime PM if controller registration fails

Don't leave runtime PM enabled in case devm_spi_register_controller()
returns with an error. Otherwise runtime PM will complain when driver is
reloaded:

[  693.855811] pxa2xx-spi pxa2xx-spi.13: Unbalanced pm_runtime_enable!

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Jarkko Nikula 2018-03-07 17:05:04 +02:00 • committed by Mark Brown
commit e2b714afee
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0