From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 9 Feb 2007 14:07:07 +1100 From: David Gibson To: Paul Mackerras Subject: More DCR native fixups Message-ID: <20070209030707.GD3489@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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. Signed-off-by: David Gibson Index: working-2.6/include/asm-powerpc/dcr-native.h =================================================================== --- working-2.6.orig/include/asm-powerpc/dcr-native.h 2007-02-09 13:59:07.000000000 +1100 +++ working-2.6/include/asm-powerpc/dcr-native.h 2007-02-09 13:59:36.000000000 +1100 @@ -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) -- 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