From: Jean-Christophe Dubois Date: Wed, 28 Mar 2007 10:07:41 +0000 (+0100) Subject: [POWERPC] Fix dcr_unmap() X-Git-Tag: v2.6.21-rc6~71 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=190a4408ecb577391ea5fbd1f90148a6992a5756;p=linux-2.6-omap-h63xx.git [POWERPC] Fix dcr_unmap() Fix a bug in dcr_unmap(). At unmap time the DCR offset need to be added instead of substracted. Signed-off-by: Jean-Christophe Dubois Acked-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/sysdev/dcr.c b/arch/powerpc/sysdev/dcr.c index dffeeaeca1d..1fc5819e7d1 100644 --- a/arch/powerpc/sysdev/dcr.c +++ b/arch/powerpc/sysdev/dcr.c @@ -129,7 +129,7 @@ void dcr_unmap(dcr_host_t host, unsigned int dcr_n, unsigned int dcr_c) if (h.token == NULL) return; - h.token -= dcr_n * h.stride; + h.token += dcr_n * h.stride; iounmap(h.token); h.token = NULL; }