diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-12-29 00:01:32 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-31 17:06:05 -0500 |
commit | e3a411a3dfc1d633504aa63efab32b7e00318454 (patch) | |
tree | 2ba6117448edd7056c8fa48cc6a696ae73a6c21a /arch/sparc/kernel | |
parent | 6fc5bae797a6632bbccdd49a1b6a96121368a4b9 (diff) |
[SPARC64]: Fix of_iounmap() region release.
We need to pass in the resource otherwise we cannot
release the region properly. We must know whether it is
an I/O or MEM resource.
Spotted by Eric Brower.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/ioport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c index 00a39760877b..987ec6782f99 100644 --- a/arch/sparc/kernel/ioport.c +++ b/arch/sparc/kernel/ioport.c | |||
@@ -153,7 +153,7 @@ void __iomem *of_ioremap(struct resource *res, unsigned long offset, | |||
153 | } | 153 | } |
154 | EXPORT_SYMBOL(of_ioremap); | 154 | EXPORT_SYMBOL(of_ioremap); |
155 | 155 | ||
156 | void of_iounmap(void __iomem *base, unsigned long size) | 156 | void of_iounmap(struct resource *res, void __iomem *base, unsigned long size) |
157 | { | 157 | { |
158 | iounmap(base); | 158 | iounmap(base); |
159 | } | 159 | } |