|
@@ -1201,7 +1201,7 @@ static int apds990x_remove(struct i2c_client *client)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
static int apds990x_suspend(struct device *dev)
|
|
|
{
|
|
|
struct i2c_client *client = container_of(dev, struct i2c_client, dev);
|
|
@@ -1224,10 +1224,6 @@ static int apds990x_resume(struct device *dev)
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
-#else
|
|
|
-#define apds990x_suspend NULL
|
|
|
-#define apds990x_resume NULL
|
|
|
-#define apds990x_shutdown NULL
|
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_PM_RUNTIME
|