Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: imx_keypad - remove ifdef round PM methods

We can annotate the suspend/resume functions with '__maybe_unused' and get
rid of the ifdef, which makes the code smaller and simpler.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Fabio Estevam and committed by
Dmitry Torokhov
e179d5fa fe96244b

+2 -4
+2 -4
drivers/input/keyboard/imx_keypad.c
··· 531 531 return 0; 532 532 } 533 533 534 - #ifdef CONFIG_PM_SLEEP 535 - static int imx_kbd_suspend(struct device *dev) 534 + static int __maybe_unused imx_kbd_suspend(struct device *dev) 536 535 { 537 536 struct platform_device *pdev = to_platform_device(dev); 538 537 struct imx_keypad *kbd = platform_get_drvdata(pdev); ··· 551 552 return 0; 552 553 } 553 554 554 - static int imx_kbd_resume(struct device *dev) 555 + static int __maybe_unused imx_kbd_resume(struct device *dev) 555 556 { 556 557 struct platform_device *pdev = to_platform_device(dev); 557 558 struct imx_keypad *kbd = platform_get_drvdata(pdev); ··· 574 575 575 576 return ret; 576 577 } 577 - #endif 578 578 579 579 static SIMPLE_DEV_PM_OPS(imx_kbd_pm_ops, imx_kbd_suspend, imx_kbd_resume); 580 580