From 4a8ad321a60fcf588ef760565a2e2d5dd31e6cd8 Mon Sep 17 00:00:00 2001 From: Robin Gong Date: Tue, 23 Jul 2019 23:55:43 +0800 Subject: [PATCH] MLK-22302-4: input: keyboard: pf1550_onkey: fix build warning with CONFIG_PM_SLEEP=n Fix build waring with CONFIG_PM_SLEEP=n. Signed-off-by: Robin Gong Reviewed-by: Andy Duan (cherry picked from commit fc6b26798579676f259aede42fb4aaecef9599ea) --- drivers/input/keyboard/pf1550_onkey.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/keyboard/pf1550_onkey.c b/drivers/input/keyboard/pf1550_onkey.c index 2ba0d155ef99..54280c1b6455 100644 --- a/drivers/input/keyboard/pf1550_onkey.c +++ b/drivers/input/keyboard/pf1550_onkey.c @@ -150,6 +150,7 @@ static int pf1550_onkey_probe(struct platform_device *pdev) return 0; } +#ifdef CONFIG_PM_SLEEP static int pf1550_onkey_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); @@ -181,6 +182,7 @@ static int pf1550_onkey_resume(struct device *dev) return 0; } +#endif static const struct of_device_id pf1550_onkey_ids[] = { { .compatible = "fsl,pf1550-onkey" }, -- 2.17.1