diff options
| author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2025-11-14 21:19:20 +0100 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-11-15 10:24:14 +0100 |
| commit | 2f1e88814ce1388c932e2c1c91e1e176c740154f (patch) | |
| tree | 7460fa3375bc93e5ec03357fc2178e2fe8153d33 | |
| parent | 1435db44ec1c81ede88470ed3486a2f5a8765704 (diff) | |
media: mali-c55: Mark pm handlers as __maybe_unused
As the Mali-C55 driver is instrumented to work without depending on
CONFIG_PM, mark the two pm_runtime handlers as __maybe_unused to
suppress the compiler warning when compiling without CONFIG_PM.
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
| -rw-r--r-- | drivers/media/platform/arm/mali-c55/mali-c55-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/arm/mali-c55/mali-c55-core.c b/drivers/media/platform/arm/mali-c55/mali-c55-core.c index b23d543cf496..43b834459ccf 100644 --- a/drivers/media/platform/arm/mali-c55/mali-c55-core.c +++ b/drivers/media/platform/arm/mali-c55/mali-c55-core.c @@ -707,7 +707,7 @@ static void __mali_c55_power_off(struct mali_c55 *mali_c55) clk_bulk_disable_unprepare(ARRAY_SIZE(mali_c55->clks), mali_c55->clks); } -static int mali_c55_runtime_suspend(struct device *dev) +static int __maybe_unused mali_c55_runtime_suspend(struct device *dev) { struct mali_c55 *mali_c55 = dev_get_drvdata(dev); @@ -770,7 +770,7 @@ static int __mali_c55_power_on(struct mali_c55 *mali_c55) return 0; } -static int mali_c55_runtime_resume(struct device *dev) +static int __maybe_unused mali_c55_runtime_resume(struct device *dev) { struct mali_c55 *mali_c55 = dev_get_drvdata(dev); int ret; |
