diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2015-01-13 07:11:49 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-13 08:48:59 +0100 |
commit | a1a582f4e0d51311b3a2fac9b7221be4b20fb9de (patch) | |
tree | 4022bd8d5ebd19464cc945bef1cb6f557c0ebc52 /drivers/serial | |
parent | 6570288f2d97d3a3dceb3e631b4e4f4305352dc8 (diff) | |
download | barebox-a1a582f4e0d51311b3a2fac9b7221be4b20fb9de.tar.gz barebox-a1a582f4e0d51311b3a2fac9b7221be4b20fb9de.tar.xz |
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')
-rw-r--r-- | drivers/serial/serial_imx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c index 21189cbbf8..cd954c282d 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); |