Subject: Disable pxa dma option for smc911x

From: Ryan Raasch <[email-masked]>
Date: Mon, 14 Dec 2009 14:14:55 +0100

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
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>