diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-12-16 22:54:09 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-12-22 04:44:45 -0500 |
commit | 43eeb0fb9f4e2aaefc4ae9dc964308ce8f55998b (patch) | |
tree | 1bdf71886653d0027094567957b3e229ab6f5362 /arch/sh | |
parent | 8db806ec80ce80605005d1d558add716152a1134 (diff) |
sh: mach-sh03: Use __set_io_port_base(), kill off special ioport_map().
This also fixes up a long-standing bug for this platform where the PIO
base was set to a register offset, rather than the actual PIO offset
itself.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/mach-sh03/setup.c | 9 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-sh03.c | 3 |
2 files changed, 2 insertions, 10 deletions
diff --git a/arch/sh/boards/mach-sh03/setup.c b/arch/sh/boards/mach-sh03/setup.c index 0d0b37f9fea4..42550bb5505d 100644 --- a/arch/sh/boards/mach-sh03/setup.c +++ b/arch/sh/boards/mach-sh03/setup.c | |||
@@ -21,14 +21,6 @@ static void __init init_sh03_IRQ(void) | |||
21 | plat_irq_setup_pins(IRQ_MODE_IRQ); | 21 | plat_irq_setup_pins(IRQ_MODE_IRQ); |
22 | } | 22 | } |
23 | 23 | ||
24 | static void __iomem *sh03_ioport_map(unsigned long port, unsigned int size) | ||
25 | { | ||
26 | if (PXSEG(port)) | ||
27 | return (void __iomem *)port; | ||
28 | |||
29 | return (void __iomem *)(port + PCI_IO_BASE); | ||
30 | } | ||
31 | |||
32 | /* arch/sh/boards/sh03/rtc.c */ | 24 | /* arch/sh/boards/sh03/rtc.c */ |
33 | void sh03_time_init(void); | 25 | void sh03_time_init(void); |
34 | 26 | ||
@@ -99,6 +91,5 @@ static struct sh_machine_vector mv_sh03 __initmv = { | |||
99 | .mv_name = "Interface (CTP/PCI-SH03)", | 91 | .mv_name = "Interface (CTP/PCI-SH03)", |
100 | .mv_setup = sh03_setup, | 92 | .mv_setup = sh03_setup, |
101 | .mv_nr_irqs = 48, | 93 | .mv_nr_irqs = 48, |
102 | .mv_ioport_map = sh03_ioport_map, | ||
103 | .mv_init_irq = init_sh03_IRQ, | 94 | .mv_init_irq = init_sh03_IRQ, |
104 | }; | 95 | }; |
diff --git a/arch/sh/drivers/pci/ops-sh03.c b/arch/sh/drivers/pci/ops-sh03.c index ebb58e605d9d..e1703ff5a4d2 100644 --- a/arch/sh/drivers/pci/ops-sh03.c +++ b/arch/sh/drivers/pci/ops-sh03.c | |||
@@ -18,7 +18,8 @@ | |||
18 | */ | 18 | */ |
19 | int __init pcibios_init_platform(void) | 19 | int __init pcibios_init_platform(void) |
20 | { | 20 | { |
21 | return 1; | 21 | __set_io_port_base(SH7751_PCI_IO_BASE); |
22 | return 1; | ||
22 | } | 23 | } |
23 | 24 | ||
24 | static struct resource sh7751_io_resource = { | 25 | static struct resource sh7751_io_resource = { |