[PATCH 05/12] usb: gadget: serial: Use console_set_active to activate console
Sascha Hauer
s.hauer at pengutronix.de
Mon Jun 8 23:21:08 PDT 2015
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/usb/gadget/u_serial.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c
index 1e5e809..2b0faf3 100644
--- a/drivers/usb/gadget/u_serial.c
+++ b/drivers/usb/gadget/u_serial.c
@@ -536,7 +536,8 @@ int gserial_connect(struct gserial *gser, u8 port_num)
if (status)
goto fail_out;
- dev_set_param(&cdev->class_dev, "active", "ioe");
+ console_set_active(cdev, CONSOLE_STDIN | CONSOLE_STDOUT |
+ CONSOLE_STDERR);
/* REVISIT if waiting on "carrier detect", signal. */
--
2.1.4
More information about the barebox
mailing list