From da3c0f0a33ac00f7138c695a16d90301cf7ec02b Mon Sep 17 00:00:00 2001 From: Beleswar Padhi Date: Wed, 21 Jan 2026 19:02:17 +0530 Subject: [PATCH] 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: 76fab2f299ec ("PENDING: remoteproc: k3: Ensure mailbox is suspended after remoteproc") Signed-off-by: Beleswar Padhi --- drivers/mailbox/omap-mailbox.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c index 105e40a5e903..82698ceb4286 100644 --- a/drivers/mailbox/omap-mailbox.c +++ b/drivers/mailbox/omap-mailbox.c @@ -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)