[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>
This commit is contained in:
@@ -153,7 +153,7 @@ void __iomem *of_ioremap(struct resource *res, unsigned long offset,
|
||||
}
|
||||
EXPORT_SYMBOL(of_ioremap);
|
||||
|
||||
void of_iounmap(void __iomem *base, unsigned long size)
|
||||
void of_iounmap(struct resource *res, void __iomem *base, unsigned long size)
|
||||
{
|
||||
iounmap(base);
|
||||
}
|
||||
|
Reference in New Issue
Block a user