mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
powerpc/mm: properly set PAGE_KERNEL flags in ioremap()
Set PAGE_KERNEL directly in the caller and do not rely on a hack adding PAGE_KERNEL flags when _PAGE_PRESENT is not set. As already done for PPC64, use pgprot_cache() helpers instead of _PAGE_XXX flags in PPC32 ioremap() derived functions. Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
aa91796ec4
commit
56f3c1413f
7 changed files with 24 additions and 33 deletions
|
|
@ -230,7 +230,7 @@ static int electra_cf_probe(struct platform_device *ofdev)
|
|||
|
||||
if (!cf->mem_base || !cf->io_virt || !cf->gpio_base ||
|
||||
(__ioremap_at(io.start, cf->io_virt, cf->io_size,
|
||||
pgprot_val(pgprot_noncached(__pgprot(0)))) == NULL)) {
|
||||
pgprot_val(pgprot_noncached(PAGE_KERNEL))) == NULL)) {
|
||||
dev_err(device, "can't ioremap ranges\n");
|
||||
status = -ENOMEM;
|
||||
goto fail1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue