diff options
Diffstat (limited to 'arch/sh/boards/board-shmin.c')
-rw-r--r-- | arch/sh/boards/board-shmin.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/arch/sh/boards/board-shmin.c b/arch/sh/boards/board-shmin.c index 5cc0867de5a..b1dcbbc8918 100644 --- a/arch/sh/boards/board-shmin.c +++ b/arch/sh/boards/board-shmin.c | |||
@@ -22,21 +22,13 @@ static void __init init_shmin_irq(void) | |||
22 | plat_irq_setup_pins(IRQ_MODE_IRQ); | 22 | plat_irq_setup_pins(IRQ_MODE_IRQ); |
23 | } | 23 | } |
24 | 24 | ||
25 | static void __iomem *shmin_ioport_map(unsigned long port, unsigned int size) | 25 | static void __init shmin_setup(char **cmdline_p) |
26 | { | 26 | { |
27 | static int dummy; | 27 | __set_io_port_base(SHMIN_IO_BASE); |
28 | |||
29 | if ((port & ~0x1f) == SHMIN_NE_BASE) | ||
30 | return (void __iomem *)(SHMIN_IO_BASE + port); | ||
31 | |||
32 | dummy = 0; | ||
33 | |||
34 | return &dummy; | ||
35 | |||
36 | } | 28 | } |
37 | 29 | ||
38 | static struct sh_machine_vector mv_shmin __initmv = { | 30 | static struct sh_machine_vector mv_shmin __initmv = { |
39 | .mv_name = "SHMIN", | 31 | .mv_name = "SHMIN", |
32 | .mv_setup = shmin_setup, | ||
40 | .mv_init_irq = init_shmin_irq, | 33 | .mv_init_irq = init_shmin_irq, |
41 | .mv_ioport_map = shmin_ioport_map, | ||
42 | }; | 34 | }; |