aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/sysdev/dcr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/dcr.c b/arch/powerpc/sysdev/dcr.c
index dffeeaeca1d9..1fc5819e7d18 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)
129 129
130 if (h.token == NULL) 130 if (h.token == NULL)
131 return; 131 return;
132 h.token -= dcr_n * h.stride; 132 h.token += dcr_n * h.stride;
133 iounmap(h.token); 133 iounmap(h.token);
134 h.token = NULL; 134 h.token = NULL;
135} 135}