summaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_imx.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2015-01-13 07:11:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-13 08:48:59 +0100
commita1a582f4e0d51311b3a2fac9b7221be4b20fb9de (patch)
tree4022bd8d5ebd19464cc945bef1cb6f557c0ebc52 /drivers/serial/serial_imx.c
parent6570288f2d97d3a3dceb3e631b4e4f4305352dc8 (diff)
downloadbarebox-a1a582f4e0d51311b3a2fac9b7221be4b20fb9de.tar.gz
console: allow to specify the device id
so we can use dynamic number id with specific devname Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial/serial_imx.c')
-rw-r--r--drivers/serial/serial_imx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index 21189cb..cd954c2 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -340,8 +340,10 @@ static int imx_serial_probe(struct device_d *dev)
cdev->linux_console_name = "ttymxc";
if (dev->device_node) {
devname = of_alias_get(dev->device_node);
- if (devname)
+ if (devname) {
cdev->devname = xstrdup(devname);
+ cdev->devid = DEVICE_ID_SINGLE;
+ }
}
imx_serial_init_port(cdev);