spi: tegra20-slink: Improve runtime PM usage
authorDmitry Osipenko <digetx@gmail.com>
Sat, 31 Jul 2021 19:27:30 +0000 (22:27 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 9 Aug 2021 11:40:28 +0000 (12:40 +0100)
commite4bb903fda0e9bbafa1338dcd2ee5e4d3ccc50da
treec21905e03ff1ae30b1e7faca08a405aa4d976232
parent04e6bb0d6bb127bac929fb35edd2dd01613c9520
spi: tegra20-slink: Improve runtime PM usage

The Tegra SPI driver supports runtime PM, which controls the clock
enable state, but the clk is also enabled separately from the RPM
at the driver probe time, and thus, stays always on. Fix it.

Runtime PM now is always available on Tegra, hence there is no need to
check the RPM presence in the driver anymore. Remove these checks.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210731192731.5869-1-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra20-slink.c