mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
powerpc/mm: Use a helper for finding pte bits mapping I/O area
Use a helper instead of open coding with constants. A later patch will drop the WIMG bits and use PowerISA 3.0 defines. Signed-off-by: Aneesh Kumar K.V <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
e58e87adc8
commit
72176dd0ad
6 changed files with 8 additions and 8 deletions
|
|
@ -228,7 +228,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,
|
||||
_PAGE_NO_CACHE | _PAGE_GUARDED) == NULL)) {
|
||||
pgprot_val(pgprot_noncached(__pgprot(0)))) == NULL)) {
|
||||
dev_err(device, "can't ioremap ranges\n");
|
||||
status = -ENOMEM;
|
||||
goto fail1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue