]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: mach-sh03: Use __set_io_port_base(), kill off special ioport_map().
authorPaul Mundt <lethal@linux-sh.org>
Wed, 17 Dec 2008 03:54:09 +0000 (12:54 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 22 Dec 2008 09:44:45 +0000 (18:44 +0900)
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>
arch/sh/boards/mach-sh03/setup.c
arch/sh/drivers/pci/ops-sh03.c

index 0d0b37f9fea4a6d2fc8614c1938c5c2eac274eed..42550bb5505df1536be1261917e89c30ce99527b 100644 (file)
@@ -21,14 +21,6 @@ static void __init init_sh03_IRQ(void)
        plat_irq_setup_pins(IRQ_MODE_IRQ);
 }
 
-static void __iomem *sh03_ioport_map(unsigned long port, unsigned int size)
-{
-       if (PXSEG(port))
-               return (void __iomem *)port;
-
-        return (void __iomem *)(port + PCI_IO_BASE);
-}
-
 /* arch/sh/boards/sh03/rtc.c */
 void sh03_time_init(void);
 
@@ -99,6 +91,5 @@ static struct sh_machine_vector mv_sh03 __initmv = {
        .mv_name                = "Interface (CTP/PCI-SH03)",
        .mv_setup               = sh03_setup,
        .mv_nr_irqs             = 48,
-       .mv_ioport_map          = sh03_ioport_map,
        .mv_init_irq            = init_sh03_IRQ,
 };
index ebb58e605d9d27ddd47fecc45ce30d3a1e11a5db..e1703ff5a4d237339264e9e4c699dcb8dc4c2073 100644 (file)
@@ -18,7 +18,8 @@
  */
 int __init pcibios_init_platform(void)
 {
-   return 1;
+       __set_io_port_base(SH7751_PCI_IO_BASE);
+       return 1;
 }
 
 static struct resource sh7751_io_resource = {