mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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. [[email protected]: Added PCI dependency] Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]>
This commit is contained in:
parent
385acc0dac
commit
1be27c62d6
5 changed files with 9 additions and 34 deletions
|
|
@ -278,6 +278,7 @@ config BFIN_CFPCMCIA
|
|||
|
||||
config AT91_CF
|
||||
tristate "AT91 CompactFlash Controller"
|
||||
depends on PCI
|
||||
depends on PCMCIA && ARCH_AT91
|
||||
depends on !ARCH_MULTIPLATFORM
|
||||
help
|
||||
|
|
|
|||
|
|
@ -317,13 +317,14 @@ static int at91_cf_probe(struct platform_device *pdev)
|
|||
} else
|
||||
cf->socket.pci_irq = nr_irqs + 1;
|
||||
|
||||
/* pcmcia layer only remaps "real" memory not iospace */
|
||||
cf->socket.io_offset = (unsigned long) devm_ioremap(&pdev->dev,
|
||||
cf->phys_baseaddr + CF_IO_PHYS, SZ_2K);
|
||||
if (!cf->socket.io_offset) {
|
||||
status = -ENXIO;
|
||||
/*
|
||||
* pcmcia layer only remaps "real" memory not iospace
|
||||
* io_offset is set to 0x10000 to avoid the check in static_find_io().
|
||||
* */
|
||||
cf->socket.io_offset = 0x10000;
|
||||
status = pci_ioremap_io(0x10000, cf->phys_baseaddr + CF_IO_PHYS);
|
||||
if (status)
|
||||
goto fail0a;
|
||||
}
|
||||
|
||||
/* reserve chip-select regions */
|
||||
if (!devm_request_mem_region(&pdev->dev, io->start, resource_size(io), "at91_cf")) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue