MLK-22304-2 fbdev: mxsfb: fix build warnings if CONFIG_PM_SLEEP off
authorFancy Fang <chen.fang@nxp.com>
Tue, 23 Jul 2019 09:03:57 +0000 (17:03 +0800)
committerFancy Fang <chen.fang@nxp.com>
Wed, 24 Jul 2019 01:56:38 +0000 (09:56 +0800)
commitd9ed772ccfeb42e8405bbf8c0f52ffe04f09b039
tree6afc055f368a929345291357174a0ee989fad074
parent0f07d7c68f3cfa3bf5b3fff6e4ef8dd49cdebd91
MLK-22304-2 fbdev: mxsfb: fix build warnings if CONFIG_PM_SLEEP off

The system suspend and resume hooks is related with CONFIG_PM_SLEEP
instead of CONFIG_PM, so use CONFIG_PM_SLEEP to control the definitions
for them. And after this, the related overlay suspend and resume should
be defined under CONFIG_PM_SLEEP control. Below are the build warnings
before this patch.

drivers/video/fbdev/mxsfb.c:2463:12: warning: ‘mxsfb_resume’ defined but not used [-Wunused-function]
 static int mxsfb_resume(struct device *pdev)
            ^~~~~~~~~~~~
drivers/video/fbdev/mxsfb.c:2444:12: warning: ‘mxsfb_suspend’ defined but not used [-Wunused-function]
 static int mxsfb_suspend(struct device *pdev)
            ^~~~~~~~~~~~~

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
drivers/video/fbdev/mxsfb.c