Commit 12b6b01c authored by Paul Mundt's avatar Paul Mundt

sh: Handle unmapping of fixed slots transparently in iounmap().

iounmap() should balance whatever is done by ioremap(). Presently
ioremap() can do any of fixed mappings, PMB mappings, or page table
mappings. Presently only the latter two are handled through the standard
unmap path, so tie in the fixed unmapping, too.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 4f744aff
...@@ -142,6 +142,12 @@ void __iounmap(void __iomem *addr) ...@@ -142,6 +142,12 @@ void __iounmap(void __iomem *addr)
if (iomapping_nontranslatable(vaddr)) if (iomapping_nontranslatable(vaddr))
return; return;
/*
* There's no VMA if it's from an early fixed mapping.
*/
if (iounmap_fixed(addr) == 0)
return;
#ifdef CONFIG_PMB #ifdef CONFIG_PMB
/* /*
* Purge any PMB entries that may have been established for this * Purge any PMB entries that may have been established for this
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment