]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: board-shmin: Convert shmin to use __set_io_port_base().
authorPaul Mundt <lethal@linux-sh.org>
Wed, 17 Dec 2008 03:42:20 +0000 (12:42 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 22 Dec 2008 09:44:45 +0000 (18:44 +0900)
Drop the special mv_ioport_map() implementation, as this can simply use
__set_io_port_base() directly.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/board-shmin.c

index 5cc0867de5ab88809d37cb8f1e36dda5f0e580b3..b1dcbbc89188856d51cadc0292bee7c1cfe0986d 100644 (file)
@@ -22,21 +22,13 @@ static void __init init_shmin_irq(void)
        plat_irq_setup_pins(IRQ_MODE_IRQ);
 }
 
-static void __iomem *shmin_ioport_map(unsigned long port, unsigned int size)
+static void __init shmin_setup(char **cmdline_p)
 {
-       static int dummy;
-
-       if ((port & ~0x1f) == SHMIN_NE_BASE)
-               return (void __iomem *)(SHMIN_IO_BASE + port);
-
-       dummy = 0;
-
-       return &dummy;
-
+       __set_io_port_base(SHMIN_IO_BASE);
 }
 
 static struct sh_machine_vector mv_shmin __initmv = {
        .mv_name        = "SHMIN",
+       .mv_setup       = shmin_setup,
        .mv_init_irq    = init_shmin_irq,
-       .mv_ioport_map  = shmin_ioport_map,
 };