All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dma: fix sa11x0-dma build error when CONFIG_PM_SLEEP=n
@ 2012-03-28  9:42 ` Dmitry Artamonow
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Artamonow @ 2012-03-28  9:42 UTC (permalink / raw)
  To: Russell King, Dan Williams, Vinod Koul
  Cc: Dmitry Artamonow, linux-kernel, linux-arm-kernel

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@inbox.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] dma: fix sa11x0-dma build error when CONFIG_PM_SLEEP=n
@ 2012-03-28  9:42 ` Dmitry Artamonow
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Artamonow @ 2012-03-28  9:42 UTC (permalink / raw)
  To: linux-arm-kernel

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@inbox.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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-28  9:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-28  9:42 [PATCH] dma: fix sa11x0-dma build error when CONFIG_PM_SLEEP=n Dmitry Artamonow
2012-03-28  9:42 ` Dmitry Artamonow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.