diff options
author | Jean-Christophe Dubois <jdubois@mc.com> | 2007-03-28 11:07:41 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-29 09:49:23 +1000 |
commit | 190a4408ecb577391ea5fbd1f90148a6992a5756 (patch) | |
tree | e1e6e3e9e16e60e76c3b8596da7d22364d4b4936 /arch | |
parent | e5c465f5d957ab581bc79d3ce981281fe73021a3 (diff) | |
download | linux-3.10-190a4408ecb577391ea5fbd1f90148a6992a5756.tar.gz linux-3.10-190a4408ecb577391ea5fbd1f90148a6992a5756.tar.bz2 linux-3.10-190a4408ecb577391ea5fbd1f90148a6992a5756.zip |
[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 <jdubois@mc.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/sysdev/dcr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |