diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-09-11 10:36:03 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-04-20 14:29:34 +0300 |
commit | 57bf0f5a162d386cc1a33f8dd492bb7a2cf8e8ac (patch) | |
tree | f9c7da483adf142b3010752c0d7b6bfa9ec94310 /drivers/ata | |
parent | 225b5d376e53543a66fc9b824a05cfcdf74c763a (diff) | |
download | linux-57bf0f5a162d386cc1a33f8dd492bb7a2cf8e8ac.tar.xz |
ARM: pxa: use pdev resource for palmld mmio
The palmld header is almost unused in drivers, the only
remaining thing now is the PATA device address, which should
really be passed as a resource.
Cc: linux-ide@vger.kernel.org
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/pata_palmld.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/pata_palmld.c b/drivers/ata/pata_palmld.c index 2448441571ed..400e65190904 100644 --- a/drivers/ata/pata_palmld.c +++ b/drivers/ata/pata_palmld.c @@ -25,7 +25,6 @@ #include <linux/gpio/consumer.h> #include <scsi/scsi_host.h> -#include <mach/palmld.h> #define DRV_NAME "pata_palmld" @@ -63,7 +62,7 @@ static int palmld_pata_probe(struct platform_device *pdev) return -ENOMEM; /* remap drive's physical memory address */ - mem = devm_ioremap(dev, PALMLD_IDE_PHYS, 0x1000); + mem = devm_platform_ioremap_resource(pdev, 0); if (!mem) return -ENOMEM; |