MLK-22300: [i.MX8M/VPU]: Fixing compiler warning when pm sleep is disabled
authorZhou Peng <eagle.zhou@nxp.com>
Tue, 23 Jul 2019 07:31:51 +0000 (15:31 +0800)
committerZhou Peng <eagle.zhou@nxp.com>
Tue, 23 Jul 2019 08:26:42 +0000 (16:26 +0800)
Fixing unused compiler warning for xxx_suspend()/xxx_resume(), include
850Dg1g2(hantrodec.c)/845g1g2(hantrodec_845s.c)/845h1(hx280enc.c)

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
drivers/mxc/hantro/hantrodec.c
drivers/mxc/hantro_845/hantrodec_845s.c
drivers/mxc/hantro_845_h1/hx280enc.c

index f93a16e..0f97c91 100755 (executable)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  *    The GPL License (GPL)
  *
- *    Copyright (c) 2015-2018, VeriSilicon Inc.
+ *    Copyright (c) 2015-2019, VeriSilicon Inc.
  *    Copyright (c) 2011-2014, Google Inc.
  *
  *    This program is free software; you can redistribute it and/or
@@ -1859,12 +1859,12 @@ static int hantro_dev_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_PM
-static int hantro_suspend(struct device *dev)
+static int __maybe_unused hantro_suspend(struct device *dev)
 {
        pm_runtime_put_sync_suspend(dev);   //power off
        return 0;
 }
-static int hantro_resume(struct device *dev)
+static int __maybe_unused hantro_resume(struct device *dev)
 {
        pm_runtime_get_sync(dev);     //power on
        hantro_ctrlblk_reset(dev);
index 2bd424c..497d221 100755 (executable)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  *    The GPL License (GPL)
  *
- *    Copyright (c) 2015-2018, VeriSilicon Inc.
+ *    Copyright (c) 2015-2019, VeriSilicon Inc.
  *    Copyright (c) 2011-2014, Google Inc.
  *
  *    This program is free software; you can redistribute it and/or
@@ -1963,12 +1963,12 @@ static int hantro_dev_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_PM
-static int hantro_suspend(struct device *dev)
+static int __maybe_unused hantro_suspend(struct device *dev)
 {
        pm_runtime_put_sync_suspend(dev);   //power off
        return 0;
 }
-static int hantro_resume(struct device *dev)
+static int __maybe_unused hantro_resume(struct device *dev)
 {
        hantrodec_t *hantrodev = dev_get_drvdata(dev);
 
index 40f4fe8..b57d1d1 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Encoder device driver (kernel module)
  *
- * Copyright (c) 2013-2018, VeriSilicon Inc.
+ * Copyright (c) 2013-2019, VeriSilicon Inc.
  * Copyright (C) 2012 Google Finland Oy.
  *
  * This program is free software; you can redistribute it and/or
@@ -847,12 +847,12 @@ static int hantro_h1_dev_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_PM
-static int hantro_h1_suspend(struct device *dev)
+static int __maybe_unused hantro_h1_suspend(struct device *dev)
 {
        pm_runtime_put_sync_suspend(dev);   //power off
        return 0;
 }
-static int hantro_h1_resume(struct device *dev)
+static int __maybe_unused hantro_h1_resume(struct device *dev)
 {
        hx280enc_t *hx280enc = dev_get_drvdata(dev);