Skip to contentSkip to conversation

sh-sci: remove early_sci_setup()

PATCH New Magnus Damm 1 participant 1 message Jan 21, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 3/13 sh-sci: remove early_sci_setup()

From: Magnus Damm <[email protected]>

Remove unused early_sci_setup() function from sh-sci.

---

 drivers/serial/sh-sci.c    |   14 --------------
 include/linux/serial_sci.h |    2 --
 2 files changed, 16 deletions(-)
drivers/serial/sh-sci.c +0 -14
@@ -1086,20 +1086,6 @@ static void __init sci_init_ports(void)
 	}
 }
 
-int __init early_sci_setup(struct uart_port *port)
-{
-	if (unlikely(port->line > SCI_NPORTS))
-		return -ENODEV;
-
-	sci_init_ports();
-
-	sci_ports[port->line].port.membase	= port->membase;
-	sci_ports[port->line].port.mapbase	= port->mapbase;
-	sci_ports[port->line].port.type		= port->type;
-
-	return 0;
-}
-
 #ifdef CONFIG_SERIAL_SH_SCI_CONSOLE
 /*
  *	Print a string to the serial port trying not to disturb
include/linux/serial_sci.h +0 -2
@@ -27,6 +27,4 @@ struct plat_sci_port {
 	upf_t		flags;			/* UPF_* flags */
 };
 
-int early_sci_setup(struct uart_port *port);
-
 #endif /* __LINUX_SERIAL_SCI_H */