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>
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);
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;