netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ryan Raasch <ryan.raasch@gmail.com>
To: netdev@vger.kernel.org
Subject: Disable pxa dma option for smc911x
Date: Mon, 14 Dec 2009 14:14:55 +0100	[thread overview]
Message-ID: <4B263A4F.8050302@gmail.com> (raw)

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

             reply	other threads:[~2009-12-14 13:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14 13:14 Ryan Raasch [this message]
2009-12-14 13:22 ` Disable pxa dma option for smc911x Ryan Raasch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B263A4F.8050302@gmail.com \
    --to=ryan.raasch@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).