diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2016-04-29 09:25:37 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-05-01 04:32:32 -0400 |
commit | 72176dd0ad36c6d8e13515d085f7a229a55a2985 (patch) | |
tree | fa00f7e4d0a536375411b2d2f54de0421b98bff1 /drivers/pcmcia | |
parent | e58e87adc8bf92e9c6abb1dc1f4af2500aa07ff3 (diff) |
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 <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/electra_cf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/electra_cf.c b/drivers/pcmcia/electra_cf.c index 61cf61ac621e..4d7bc3f4124a 100644 --- a/drivers/pcmcia/electra_cf.c +++ b/drivers/pcmcia/electra_cf.c | |||
@@ -228,7 +228,7 @@ static int electra_cf_probe(struct platform_device *ofdev) | |||
228 | 228 | ||
229 | if (!cf->mem_base || !cf->io_virt || !cf->gpio_base || | 229 | if (!cf->mem_base || !cf->io_virt || !cf->gpio_base || |
230 | (__ioremap_at(io.start, cf->io_virt, cf->io_size, | 230 | (__ioremap_at(io.start, cf->io_virt, cf->io_size, |
231 | _PAGE_NO_CACHE | _PAGE_GUARDED) == NULL)) { | 231 | pgprot_val(pgprot_noncached(__pgprot(0)))) == NULL)) { |
232 | dev_err(device, "can't ioremap ranges\n"); | 232 | dev_err(device, "can't ioremap ranges\n"); |
233 | status = -ENOMEM; | 233 | status = -ENOMEM; |
234 | goto fail1; | 234 | goto fail1; |