aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/at91_cf.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-03-12 10:54:23 -0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2015-03-13 10:11:04 -0400
commit1be27c62d61d23e8426834785d7989daa6745aa8 (patch)
treeb00250c33e64c025bd8ddf2be9c8a10c6494c2c8 /drivers/pcmcia/at91_cf.c
parent385acc0dac88d79447a03a1363072fc258429dec (diff)
ARM: at91: remove NEED_MACH_IO_H
The mach/io.h header on at91 is used to support a nonstandard I/O space window for the cf card driver. This changes the driver to use pci_ioremap_io in order to have the standard location, and then removes the custom mach/io.h. [alexandre.belloni@free-electrons.com: Added PCI dependency] Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'drivers/pcmcia/at91_cf.c')
-rw-r--r--drivers/pcmcia/at91_cf.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c
index bfb799c7b343..e7775a41ae5d 100644
--- a/drivers/pcmcia/at91_cf.c
+++ b/drivers/pcmcia/at91_cf.c
@@ -317,13 +317,14 @@ static int at91_cf_probe(struct platform_device *pdev)
317 } else 317 } else
318 cf->socket.pci_irq = nr_irqs + 1; 318 cf->socket.pci_irq = nr_irqs + 1;
319 319
320 /* pcmcia layer only remaps "real" memory not iospace */ 320 /*
321 cf->socket.io_offset = (unsigned long) devm_ioremap(&pdev->dev, 321 * pcmcia layer only remaps "real" memory not iospace
322 cf->phys_baseaddr + CF_IO_PHYS, SZ_2K); 322 * io_offset is set to 0x10000 to avoid the check in static_find_io().
323 if (!cf->socket.io_offset) { 323 * */
324 status = -ENXIO; 324 cf->socket.io_offset = 0x10000;
325 status = pci_ioremap_io(0x10000, cf->phys_baseaddr + CF_IO_PHYS);
326 if (status)
325 goto fail0a; 327 goto fail0a;
326 }
327 328
328 /* reserve chip-select regions */ 329 /* reserve chip-select regions */
329 if (!devm_request_mem_region(&pdev->dev, io->start, resource_size(io), "at91_cf")) { 330 if (!devm_request_mem_region(&pdev->dev, io->start, resource_size(io), "at91_cf")) {