提交 98a955da 编写于 作者: P Paul Mundt

sh: board-shmin: Convert shmin to use __set_io_port_base().

Drop the special mv_ioport_map() implementation, as this can simply use
__set_io_port_base() directly.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 2125a460
...@@ -22,21 +22,13 @@ static void __init init_shmin_irq(void) ...@@ -22,21 +22,13 @@ static void __init init_shmin_irq(void)
plat_irq_setup_pins(IRQ_MODE_IRQ); 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; __set_io_port_base(SHMIN_IO_BASE);
if ((port & ~0x1f) == SHMIN_NE_BASE)
return (void __iomem *)(SHMIN_IO_BASE + port);
dummy = 0;
return &dummy;
} }
static struct sh_machine_vector mv_shmin __initmv = { static struct sh_machine_vector mv_shmin __initmv = {
.mv_name = "SHMIN", .mv_name = "SHMIN",
.mv_setup = shmin_setup,
.mv_init_irq = init_shmin_irq, .mv_init_irq = init_shmin_irq,
.mv_ioport_map = shmin_ioport_map,
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册