|
@@ -535,8 +535,7 @@ static int wkup_m3_ipc_remove(struct platform_device *pdev)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
|
-static int wkup_m3_ipc_suspend(struct device *dev)
|
|
|
|
|
|
+static int __maybe_unused wkup_m3_ipc_suspend(struct device *dev)
|
|
{
|
|
{
|
|
/*
|
|
/*
|
|
* Nothing needs to be done on suspend even with rtc_only flag set
|
|
* Nothing needs to be done on suspend even with rtc_only flag set
|
|
@@ -544,7 +543,7 @@ static int wkup_m3_ipc_suspend(struct device *dev)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-static int wkup_m3_ipc_resume(struct device *dev)
|
|
|
|
|
|
+static int __maybe_unused wkup_m3_ipc_resume(struct device *dev)
|
|
{
|
|
{
|
|
if (m3_ipc_state->is_rtc_only) {
|
|
if (m3_ipc_state->is_rtc_only) {
|
|
rproc_shutdown(m3_ipc_state->rproc);
|
|
rproc_shutdown(m3_ipc_state->rproc);
|
|
@@ -559,7 +558,6 @@ static int wkup_m3_ipc_resume(struct device *dev)
|
|
static const struct dev_pm_ops wkup_m3_ipc_pm_ops = {
|
|
static const struct dev_pm_ops wkup_m3_ipc_pm_ops = {
|
|
SET_SYSTEM_SLEEP_PM_OPS(wkup_m3_ipc_suspend, wkup_m3_ipc_resume)
|
|
SET_SYSTEM_SLEEP_PM_OPS(wkup_m3_ipc_suspend, wkup_m3_ipc_resume)
|
|
};
|
|
};
|
|
-#endif
|
|
|
|
|
|
|
|
static const struct of_device_id wkup_m3_ipc_of_match[] = {
|
|
static const struct of_device_id wkup_m3_ipc_of_match[] = {
|
|
{ .compatible = "ti,am3352-wkup-m3-ipc", },
|
|
{ .compatible = "ti,am3352-wkup-m3-ipc", },
|
|
@@ -574,9 +572,7 @@ static struct platform_driver wkup_m3_ipc_driver = {
|
|
.driver = {
|
|
.driver = {
|
|
.name = "wkup_m3_ipc",
|
|
.name = "wkup_m3_ipc",
|
|
.of_match_table = wkup_m3_ipc_of_match,
|
|
.of_match_table = wkup_m3_ipc_of_match,
|
|
-#ifdef CONFIG_PM
|
|
|
|
.pm = &wkup_m3_ipc_pm_ops,
|
|
.pm = &wkup_m3_ipc_pm_ops,
|
|
-#endif
|
|
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
|