Skip to content

Commit 2f1e888

Browse files
Jacopo MondiHans Verkuil
authored andcommitted
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>
1 parent 1435db4 commit 2f1e888

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/media/platform/arm/mali-c55/mali-c55-core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ static void __mali_c55_power_off(struct mali_c55 *mali_c55)
707707
clk_bulk_disable_unprepare(ARRAY_SIZE(mali_c55->clks), mali_c55->clks);
708708
}
709709

710-
static int mali_c55_runtime_suspend(struct device *dev)
710+
static int __maybe_unused mali_c55_runtime_suspend(struct device *dev)
711711
{
712712
struct mali_c55 *mali_c55 = dev_get_drvdata(dev);
713713

@@ -770,7 +770,7 @@ static int __mali_c55_power_on(struct mali_c55 *mali_c55)
770770
return 0;
771771
}
772772

773-
static int mali_c55_runtime_resume(struct device *dev)
773+
static int __maybe_unused mali_c55_runtime_resume(struct device *dev)
774774
{
775775
struct mali_c55 *mali_c55 = dev_get_drvdata(dev);
776776
int ret;

0 commit comments

Comments
 (0)