mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] usb: gadget: serial: only call into CONSOLE_FULL code if it's there
@ 2015-07-23  9:56 Lucas Stach
  2015-07-23  9:56 ` [PATCH 2/4] ARM: pxa: move mainstone TEXTBASE to Kconfig Lucas Stach
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Lucas Stach @ 2015-07-23  9:56 UTC (permalink / raw)
  To: barebox

From: Lucas Stach <dev@lynxeye.de>

Fixes:
drivers/built-in.o: In function `gserial_connect':
drivers/usb/gadget/u_serial.c:539: undefined reference to `console_set_active'

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 drivers/usb/gadget/u_serial.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c
index 2b0faf33037e..140346e77028 100644
--- a/drivers/usb/gadget/u_serial.c
+++ b/drivers/usb/gadget/u_serial.c
@@ -536,8 +536,9 @@ int gserial_connect(struct gserial *gser, u8 port_num)
 	if (status)
 		goto fail_out;
 
-	console_set_active(cdev, CONSOLE_STDIN | CONSOLE_STDOUT |
-		CONSOLE_STDERR);
+	if (IS_ENABLED(CONFIG_CONSOLE_FULL))
+		console_set_active(cdev, CONSOLE_STDIN | CONSOLE_STDOUT |
+				   CONSOLE_STDERR);
 
 	/* REVISIT if waiting on "carrier detect", signal. */
 
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-24  7:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-23  9:56 [PATCH 1/4] usb: gadget: serial: only call into CONSOLE_FULL code if it's there Lucas Stach
2015-07-23  9:56 ` [PATCH 2/4] ARM: pxa: move mainstone TEXTBASE to Kconfig Lucas Stach
2015-07-23  9:56 ` [PATCH 3/4] ARM: rockchip: depend on OFTREE Lucas Stach
2015-07-23  9:56 ` [PATCH 4/4] ARM: don't allow Thumb2 on AT91 Lucas Stach
2015-07-24  7:25 ` [PATCH 1/4] usb: gadget: serial: only call into CONSOLE_FULL code if it's there Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox