From: Zhou Peng Date: Tue, 23 Jul 2019 07:31:51 +0000 (+0800) Subject: MLK-22300: [i.MX8M/VPU]: Fixing compiler warning when pm sleep is disabled X-Git-Tag: rel_imx_4.19.35_1.1.0~214 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=6c0820c1cba08f1f9a503719158416b0d995bba8;p=linux.git MLK-22300: [i.MX8M/VPU]: Fixing compiler warning when pm sleep is disabled 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 --- diff --git a/drivers/mxc/hantro/hantrodec.c b/drivers/mxc/hantro/hantrodec.c index f93a16e89d9f..0f97c916e04c 100755 --- a/drivers/mxc/hantro/hantrodec.c +++ b/drivers/mxc/hantro/hantrodec.c @@ -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); diff --git a/drivers/mxc/hantro_845/hantrodec_845s.c b/drivers/mxc/hantro_845/hantrodec_845s.c index 2bd424c5fed9..497d2210b1e7 100755 --- a/drivers/mxc/hantro_845/hantrodec_845s.c +++ b/drivers/mxc/hantro_845/hantrodec_845s.c @@ -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); diff --git a/drivers/mxc/hantro_845_h1/hx280enc.c b/drivers/mxc/hantro_845_h1/hx280enc.c index 40f4fe8fa8ef..b57d1d194fb2 100755 --- a/drivers/mxc/hantro_845_h1/hx280enc.c +++ b/drivers/mxc/hantro_845_h1/hx280enc.c @@ -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);