[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1332927740-12557-1-git-send-email-mad_soft@inbox.ru>
Date: Wed, 28 Mar 2012 13:42:20 +0400
From: Dmitry Artamonow <mad_soft@...ox.ru>
To: Russell King <linux@....linux.org.uk>,
Dan Williams <dan.j.williams@...el.com>,
Vinod Koul <vinod.koul@...el.com>
Cc: Dmitry Artamonow <mad_soft@...ox.ru>, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: [PATCH] dma: fix sa11x0-dma build error when CONFIG_PM_SLEEP=n
Add no-op sa11x0_dma_suspend/sa11x0_dma_resume for !CONFIG_PM_SLEEP case
to fix following build error:
CC [M] drivers/dma/sa11x0-dma.o
drivers/dma/sa11x0-dma.c:1064:19: error: 'sa11x0_dma_suspend' undeclared here (not in a function)
drivers/dma/sa11x0-dma.c:1065:18: error: 'sa11x0_dma_resume' undeclared here (not in a function)
Signed-off-by: Dmitry Artamonow <mad_soft@...ox.ru>
---
drivers/dma/sa11x0-dma.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/dma/sa11x0-dma.c b/drivers/dma/sa11x0-dma.c
index 16a6b48..cac4eed 100644
--- a/drivers/dma/sa11x0-dma.c
+++ b/drivers/dma/sa11x0-dma.c
@@ -1058,6 +1058,9 @@ static int sa11x0_dma_resume(struct device *dev)
return 0;
}
+#else
+#define sa11x0_dma_suspend NULL
+#define sa11x0_dma_resume NULL
#endif
static const struct dev_pm_ops sa11x0_dma_pm_ops = {
--
1.7.5.1.300.gc565c
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists