aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/of_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/of_serial.c')
-rw-r--r--drivers/tty/serial/of_serial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c
index 64f1bab7e9d7..3194b42c97c0 100644
--- a/drivers/tty/serial/of_serial.c
+++ b/drivers/tty/serial/of_serial.c
@@ -128,6 +128,10 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
128 if (of_find_property(np, "no-loopback-test", NULL)) 128 if (of_find_property(np, "no-loopback-test", NULL))
129 port->flags |= UPF_SKIP_TEST; 129 port->flags |= UPF_SKIP_TEST;
130 130
131 ret = of_alias_get_id(np, "serial");
132 if (ret >= 0)
133 port->line = ret;
134
131 port->dev = &ofdev->dev; 135 port->dev = &ofdev->dev;
132 136
133 switch (type) { 137 switch (type) {