Skip to contentSkip to conversation

Fix CS8900 regression on impa7 board

PATCH New Ben Warren 1 participant 1 message Nov 9, 2009 Network drivers

lore
Share & tools
lore

Ben Warren

author
#0 lore raw

PATCH 1/1 Fix CS8900 regression on impa7 board

The following error was seen on impa7 board, due to its use of a 32-bit bus on CS8900.
cs8900.c:137:37: error: macro "get_reg_init_bus" passed 2 arguments, but takes just 1

This patch gives the macro the correct number of arguments

---
 drivers/net/cs8900.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/cs8900.c +1 -1
index a9d1f22..df36004 100644
@@ -56,7 +56,7 @@
 #define REG_READ(a) readl((a))
 
 /* we don't need 16 bit initialisation on 32 bit bus */
-#define get_reg_init_bus(x) get_reg((x))
+#define get_reg_init_bus(r,d) get_reg((r),(d))
 
 #else
 
Signature · 1 line
1.6.0.4