]> git.baikalelectronics.ru Git - kernel.git/commit
Use dcr_host_t.base in dcr_unmap()
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 15 Oct 2007 09:34:37 +0000 (19:34 +1000)
committerJeff Garzik <jeff@garzik.org>
Mon, 15 Oct 2007 18:29:49 +0000 (14:29 -0400)
commit4244d65cbbeb352b2b6ff60c10e6f4380733d319
tree8df0ce10364d82c205ed6ec7d8ab9af9a2fe2989
parent2f1dac46e897dbbbb65072c95b31ccf456284083
Use dcr_host_t.base in dcr_unmap()

With the base stored in dcr_host_t, there's no need for callers to pass
the dcr_n into dcr_unmap(). In fact this removes the possibility of them
passing the incorrect value, which would then be iounmap()'ed.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
arch/powerpc/sysdev/dcr.c
drivers/net/ibm_newemac/mal.c
include/asm-powerpc/dcr-mmio.h
include/asm-powerpc/dcr-native.h