diff options
Diffstat (limited to 'drivers/misc/apds990x.c')
| -rw-r--r-- | drivers/misc/apds990x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/apds990x.c b/drivers/misc/apds990x.c index 868a30a1b417..3739ffa9cdf1 100644 --- a/drivers/misc/apds990x.c +++ b/drivers/misc/apds990x.c | |||
| @@ -609,7 +609,7 @@ static int apds990x_detect(struct apds990x_chip *chip) | |||
| 609 | return ret; | 609 | return ret; |
| 610 | } | 610 | } |
| 611 | 611 | ||
| 612 | #if defined(CONFIG_PM) || defined(CONFIG_PM_RUNTIME) | 612 | #ifdef CONFIG_PM |
| 613 | static int apds990x_chip_on(struct apds990x_chip *chip) | 613 | static int apds990x_chip_on(struct apds990x_chip *chip) |
| 614 | { | 614 | { |
| 615 | int err = regulator_bulk_enable(ARRAY_SIZE(chip->regs), | 615 | int err = regulator_bulk_enable(ARRAY_SIZE(chip->regs), |
| @@ -1237,7 +1237,7 @@ static int apds990x_resume(struct device *dev) | |||
| 1237 | } | 1237 | } |
| 1238 | #endif | 1238 | #endif |
| 1239 | 1239 | ||
| 1240 | #ifdef CONFIG_PM_RUNTIME | 1240 | #ifdef CONFIG_PM |
| 1241 | static int apds990x_runtime_suspend(struct device *dev) | 1241 | static int apds990x_runtime_suspend(struct device *dev) |
| 1242 | { | 1242 | { |
| 1243 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); | 1243 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); |
