MLK-22297: [i.MX6/VPU]: Fixing compiler warning when pm sleep is disabled
authorZhou Peng <eagle.zhou@nxp.com>
Tue, 23 Jul 2019 06:23:21 +0000 (14:23 +0800)
committerZhou Peng <eagle.zhou@nxp.com>
Tue, 23 Jul 2019 06:23:21 +0000 (14:23 +0800)
Fixing unused compiler warning for vpu_suspend() and vpu_resume()

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
drivers/mxc/vpu/mxc_vpu.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 089daf7..5e8121a
@@ -1065,7 +1065,7 @@ static int vpu_dev_remove(struct platform_device *pdev)
 
 #ifdef CONFIG_PM
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
-static int vpu_suspend(struct device *dev)
+static int __maybe_unused vpu_suspend(struct device *dev)
 #else
 static int vpu_suspend(struct platform_device *pdev, pm_message_t state)
 #endif
@@ -1141,7 +1141,7 @@ static int vpu_suspend(struct platform_device *pdev, pm_message_t state)
 }
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
-static int vpu_resume(struct device *dev)
+static int __maybe_unused vpu_resume(struct device *dev)
 #else
 static int vpu_resume(struct platform_device *pdev)
 #endif