Skip to contentSkip to conversation

More DCR native fixups

PATCH David Gibson 1 participant 1 message Feb 9, 2007

lore
Share & tools
lore
#0 lore raw

Paulus, please apply

Getting BenH's new EMAC driver working on 440GP, I found some more problems in the native mode paths of the new DCR code. Here's a fix.

include/asm-powerpc/dcr-native.h +2 -2
Index: working-2.6/include/asm-powerpc/dcr-native.h
===================================================================
@@ -26,8 +26,8 @@ typedef struct {} dcr_host_t;
 
 #define DCR_MAP_OK(host)	(1)
 
-#define dcr_map(dev, dcr_n, dcr_c)	{}
-#define dcr_unmap(host, dcr_n, dcr_c)	{}
+#define dcr_map(dev, dcr_n, dcr_c)	((dcr_host_t){})
+#define dcr_unmap(host, dcr_n, dcr_c)	do {} while (0)
 #define dcr_read(host, dcr_n)		mfdcr(dcr_n)
 #define dcr_write(host, dcr_n, value)	mtdcr(dcr_n, value)
 
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson