| From d7c7b9cb449c8853c9aa68bb80cd0a5c5e860f77 Mon Sep 17 00:00:00 2001 |
| From: Arnd Bergmann <arnd@arndb.de> |
| Date: Fri, 18 Nov 2016 14:16:04 -0200 |
| Subject: [PATCH 270/299] [media] v4l: rcar_fdp1: mark PM functions as |
| __maybe_unused |
| |
| The new driver produces a warning when CONFIG_PM is disabled: |
| |
| platform/rcar_fdp1.c:2408:12: error: 'fdp1_pm_runtime_resume' defined but not used [-Werror=unused-function] |
| platform/rcar_fdp1.c:2399:12: error: 'fdp1_pm_runtime_suspend' defined but not used [-Werror=unused-function] |
| |
| This marks the two functions as __maybe_unused. |
| |
| Fixes: 4710b752e029 ("[media] v4l: Add Renesas R-Car FDP1 Driver") |
| |
| Signed-off-by: Arnd Bergmann <arnd@arndb.de> |
| Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> |
| (cherry picked from commit fa4a2fd17dc5d2d1fbad7ace78d39d7fea20d78e) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/media/platform/rcar_fdp1.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| --- a/drivers/media/platform/rcar_fdp1.c |
| +++ b/drivers/media/platform/rcar_fdp1.c |
| @@ -2396,7 +2396,7 @@ static int fdp1_remove(struct platform_d |
| return 0; |
| } |
| |
| -static int fdp1_pm_runtime_suspend(struct device *dev) |
| +static int __maybe_unused fdp1_pm_runtime_suspend(struct device *dev) |
| { |
| struct fdp1_dev *fdp1 = dev_get_drvdata(dev); |
| |
| @@ -2405,7 +2405,7 @@ static int fdp1_pm_runtime_suspend(struc |
| return 0; |
| } |
| |
| -static int fdp1_pm_runtime_resume(struct device *dev) |
| +static int __maybe_unused fdp1_pm_runtime_resume(struct device *dev) |
| { |
| struct fdp1_dev *fdp1 = dev_get_drvdata(dev); |
| |