aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-ismt.c
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2019-07-08 02:12:34 +0300
committerWolfram Sang <wsa@the-dreams.de>2019-08-01 14:45:18 +0200
commite5738bc46d49642dc4804bad3656b23016f8e1f1 (patch)
treec5cce369c710d52d1ac851be2d74c0ab6c03641f /drivers/i2c/busses/i2c-ismt.c
parent609488bc979f99f805f34e9a32c1e3b71179d10b (diff)
i2c: tegra: Compile PM functions unconditionally
The I2C driver fails to probe if CONFIG_PM_SLEEP=n because runtime PM doesn't depend on the PM sleep and in this case the runtime PM ops are not included in the driver, resulting in I2C clock not being enabled. It's much cleaner to simply allow compiler to remove the dead code instead of messing with the #ifdefs. This patch fixes such errors when CONFIG_PM_SLEEP=n: tegra-i2c 7000c400.i2c: timeout waiting for fifo flush tegra-i2c 7000c400.i2c: Failed to initialize i2c controller Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Acked-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-ismt.c')
0 files changed, 0 insertions, 0 deletions