Skip to content

Commit e4b484d

Browse files
committed
input: sensor-dev: fix compilation warning for !PM_SLEEP
Change-Id: I4f63d7a86ebe3d0015a4d409f0f256b70f7e7cf8 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
1 parent 210c1a7 commit e4b484d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/input/sensors/sensor-dev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static void sensor_resume(struct early_suspend *h)
610610
#endif
611611

612612
#ifdef CONFIG_PM
613-
static int sensor_of_suspend(struct device *dev)
613+
static int __maybe_unused sensor_of_suspend(struct device *dev)
614614
{
615615
struct sensor_private_data *sensor = dev_get_drvdata(dev);
616616

@@ -620,7 +620,7 @@ static int sensor_of_suspend(struct device *dev)
620620
return 0;
621621
}
622622

623-
static int sensor_of_resume(struct device *dev)
623+
static int __maybe_unused sensor_of_resume(struct device *dev)
624624
{
625625
struct sensor_private_data *sensor = dev_get_drvdata(dev);
626626

0 commit comments

Comments
 (0)