netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Disable pxa dma option for smc911x
@ 2009-12-14 13:14 Ryan Raasch
  2009-12-14 13:22 ` Ryan Raasch
  0 siblings, 1 reply; 2+ messages in thread
From: Ryan Raasch @ 2009-12-14 13:14 UTC (permalink / raw)
  To: netdev

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

Hello,

Because our system, we have had to disable the dma for our chip :) We 
don't know why yet...

However, when disabling the DMA, there are a couple of cpp errors, which 
this patch fixes.

Greetings,
Ryan

[-- Attachment #2: fix_smc911x_pxa_dma_disable.patch --]
[-- Type: text/x-patch, Size: 488 bytes --]

diff --git a/drivers/net/smc911x.h b/drivers/net/smc911x.h
index 05adb6a..e83213a 100644
--- a/drivers/net/smc911x.h
+++ b/drivers/net/smc911x.h
@@ -60,7 +60,7 @@
 #define SMC_DYNAMIC_BUS_CONFIG
 #endif
 
-#ifdef SMC_USE_PXA_DMA
+#if SMC_USE_PXA_DMA == 1
 #define SMC_USE_DMA
 #endif
 
@@ -209,7 +209,7 @@ static inline void SMC_outsl(struct smc911x_local *lp, int reg,
 #endif /* SMC_DYNAMIC_BUS_CONFIG */
 
 
-#ifdef SMC_USE_PXA_DMA
+#if SMC_USE_PXA_DMA == 1
 
 #include <mach/dma.h>
 

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

end of thread, other threads:[~2009-12-14 13:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 13:14 Disable pxa dma option for smc911x Ryan Raasch
2009-12-14 13:22 ` Ryan Raasch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).