From 6c0820c1cba08f1f9a503719158416b0d995bba8 Mon Sep 17 00:00:00 2001 From: Zhou Peng Date: Tue, 23 Jul 2019 15:31:51 +0800 Subject: [PATCH] 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 --- drivers/mxc/hantro/hantrodec.c | 6 +++--- drivers/mxc/hantro_845/hantrodec_845s.c | 6 +++--- drivers/mxc/hantro_845_h1/hx280enc.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) 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); -- 2.17.1