|
|
@@ -1760,8 +1760,7 @@ static int gsc_remove(struct platform_device *pdev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
-static int gsc_runtime_suspend(struct device *dev)
|
|
|
+static int __maybe_unused gsc_runtime_suspend(struct device *dev)
|
|
|
{
|
|
|
struct gsc_context *ctx = get_gsc_context(dev);
|
|
|
|
|
|
@@ -1770,7 +1769,7 @@ static int gsc_runtime_suspend(struct device *dev)
|
|
|
return gsc_clk_ctrl(ctx, false);
|
|
|
}
|
|
|
|
|
|
-static int gsc_runtime_resume(struct device *dev)
|
|
|
+static int __maybe_unused gsc_runtime_resume(struct device *dev)
|
|
|
{
|
|
|
struct gsc_context *ctx = get_gsc_context(dev);
|
|
|
|
|
|
@@ -1778,7 +1777,6 @@ static int gsc_runtime_resume(struct device *dev)
|
|
|
|
|
|
return gsc_clk_ctrl(ctx, true);
|
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
static const struct dev_pm_ops gsc_pm_ops = {
|
|
|
SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
|