aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-10-15 19:34:37 +1000
committerJeff Garzik <jeff@garzik.org>2007-10-15 14:29:49 -0400
commitcdbd3865acc2e98a349b41d130985e6f5f2dfc19 (patch)
tree8df0ce10364d82c205ed6ec7d8ab9af9a2fe2989 /drivers/net
parent83f34df4e7c8794a5a81ede663fe184f4201308a (diff)
downloadkernel_samsung_smdk4412-cdbd3865acc2e98a349b41d130985e6f5f2dfc19.zip
kernel_samsung_smdk4412-cdbd3865acc2e98a349b41d130985e6f5f2dfc19.tar.gz
kernel_samsung_smdk4412-cdbd3865acc2e98a349b41d130985e6f5f2dfc19.tar.bz2
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ibm_newemac/mal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ibm_newemac/mal.c b/drivers/net/ibm_newemac/mal.c
index 748a869..39f4cb6 100644
--- a/drivers/net/ibm_newemac/mal.c
+++ b/drivers/net/ibm_newemac/mal.c
@@ -627,7 +627,7 @@ static int __devinit mal_probe(struct of_device *ofdev,
fail2:
dma_free_coherent(&ofdev->dev, bd_size, mal->bd_virt, mal->bd_dma);
fail_unmap:
- dcr_unmap(mal->dcr_host, dcr_base, 0x100);
+ dcr_unmap(mal->dcr_host, 0x100);
fail:
kfree(mal);