SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu <coiby.xu@xxxxxxxxx> --- drivers/iio/light/us5182d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/us5182d.c b/drivers/iio/light/us5182d.c index 393f27b75c75..15c6f8db3fdc 100644 --- a/drivers/iio/light/us5182d.c +++ b/drivers/iio/light/us5182d.c @@ -918,7 +918,7 @@ static int us5182d_remove(struct i2c_client *client) return us5182d_shutdown_en(data, US5182D_CFG0_SHUTDOWN_EN); } -#if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM) +#if defined(CONFIG_PM) static int us5182d_suspend(struct device *dev) { struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); -- 2.28.0