diff options
author | Robin Gong <yibin.gong@nxp.com> | 2019-07-23 23:55:43 +0800 |
---|---|---|
committer | Robin Gong <yibin.gong@nxp.com> | 2019-07-24 00:20:49 +0800 |
commit | fc6b26798579676f259aede42fb4aaecef9599ea (patch) | |
tree | 521c5a2dfcc7f4f9176acee7df6062bd062bd0b0 /drivers/input | |
parent | 3d4bb7eb025b18c8699e80a1a76226887120b198 (diff) |
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 <yibin.gong@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/pf1550_onkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
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" }, |