summaryrefslogtreecommitdiffstats
path: root/drivers/net/smc911x.h
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-10-21 02:36:29 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-10-22 12:22:13 +0200
commitd766a4eda65b80afb50a39ce15c0ca424115bc07 (patch)
tree1a14b5d223ebdb861261c50156104d27c50c78b5 /drivers/net/smc911x.h
parentmyri10ge: disable NAPI on failure to setup the interface (diff)
downloadlinux-d766a4eda65b80afb50a39ce15c0ca424115bc07.tar.xz
linux-d766a4eda65b80afb50a39ce15c0ca424115bc07.zip
SMC911x: unbreak PXA builds
Currently SMC911x driver is broken on ARM/PXA builds. Unbreak such configurations. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/smc911x.h')
-rw-r--r--drivers/net/smc911x.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/smc911x.h b/drivers/net/smc911x.h
index bf6240f23f5d..cc7d85bdfb3e 100644
--- a/drivers/net/smc911x.h
+++ b/drivers/net/smc911x.h
@@ -50,6 +50,10 @@
#define SMC_DYNAMIC_BUS_CONFIG
#endif
+#ifdef SMC_USE_PXA_DMA
+#define SMC_USE_DMA
+#endif
+
/* store this information for the driver.. */
struct smc911x_local {
/*
@@ -196,8 +200,6 @@ static inline void SMC_outsl(struct smc911x_local *lp, int reg,
#ifdef SMC_USE_PXA_DMA
-#define SMC_USE_DMA
-
/*
* Define the request and free functions
* These are unfortunately architecture specific as no generic allocation