aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sh-sci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
-rw-r--r--drivers/tty/serial/sh-sci.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 8e55e0a2733a..5ff6657fd141 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -1825,6 +1825,7 @@ static int __devinit sci_init_single(struct platform_device *dev,
1825 struct plat_sci_port *p) 1825 struct plat_sci_port *p)
1826{ 1826{
1827 struct uart_port *port = &sci_port->port; 1827 struct uart_port *port = &sci_port->port;
1828 int ret;
1828 1829
1829 port->ops = &sci_uart_ops; 1830 port->ops = &sci_uart_ops;
1830 port->iotype = UPIO_MEM; 1831 port->iotype = UPIO_MEM;
@@ -1845,8 +1846,11 @@ static int __devinit sci_init_single(struct platform_device *dev,
1845 break; 1846 break;
1846 } 1847 }
1847 1848
1848 if (p->regtype == SCIx_PROBE_REGTYPE) 1849 if (p->regtype == SCIx_PROBE_REGTYPE) {
1849 BUG_ON(sci_probe_regmap(p) != 0); 1850 ret = sci_probe_regmap(p);
1851 if (unlikely(!ret))
1852 return ret;
1853 }
1850 1854
1851 if (dev) { 1855 if (dev) {
1852 sci_port->iclk = clk_get(&dev->dev, "sci_ick"); 1856 sci_port->iclk = clk_get(&dev->dev, "sci_ick");