PENDING: mailbox: omap-mailbox: Remove #ifdef in suspend/resume fxns
LATE_SYSTEM_SLEEP_PM_OPS internally uses pm_sleep_ptr macro which
automatically prevents the suspend/resume callbacks from getting
compiled if CONFIG_PM_SLEEP is disabled. Using a redundant #ifdef guard
with the suspend/resume callbacks throws a compilation error because
pm_sleep_ptr() can no longer find the symbol.
Remove the redundant #ifdef guard on suspend/resume functions.
Fixes: 76fab2f299 ("PENDING: remoteproc: k3: Ensure mailbox is suspended after remoteproc")
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
This commit is contained in:
committed by
Udit Kumar
parent
57b7ba68ef
commit
da3c0f0a33
@@ -334,7 +334,6 @@ static const struct mbox_chan_ops omap_mbox_chan_ops = {
|
||||
.shutdown = omap_mbox_chan_shutdown,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
static int omap_mbox_suspend(struct device *dev)
|
||||
{
|
||||
struct omap_mbox_device *mdev = dev_get_drvdata(dev);
|
||||
@@ -376,7 +375,6 @@ static int omap_mbox_resume(struct device *dev)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static const struct dev_pm_ops omap_mbox_pm_ops = {
|
||||
LATE_SYSTEM_SLEEP_PM_OPS(omap_mbox_suspend, omap_mbox_resume)
|
||||
|
||||
Reference in New Issue
Block a user