* [PATCH 1/2] netconsole: remove non-needed setbaudrate
@ 2010-09-23 20:08 Jean-Christophe PLAGNIOL-VILLARD
2010-09-23 20:08 ` [PATCH 2/2] console: set device_d id at -1 Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2010-09-23 20:08 UTC (permalink / raw)
To: barebox
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
net/netconsole.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/net/netconsole.c b/net/netconsole.c
index 07e6a6c..fda524e 100644
--- a/net/netconsole.c
+++ b/net/netconsole.c
@@ -124,11 +124,6 @@ static void nc_putc(struct console_device *cdev, char c)
priv->busy = 0;
}
-static int nc_setbaudrate(struct console_device *cdev, int baudrate)
-{
- return 0;
-}
-
static int nc_port_set(struct device_d *dev, struct param_d *param,
const char *val)
{
@@ -185,7 +180,6 @@ static int netconsole_init(void)
cdev->tstc = nc_tstc;
cdev->putc = nc_putc;
cdev->getc = nc_getc;
- cdev->setbrg = nc_setbaudrate;
g_priv = priv;
--
1.7.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] console: set device_d id at -1
2010-09-23 20:08 [PATCH 1/2] netconsole: remove non-needed setbaudrate Jean-Christophe PLAGNIOL-VILLARD
@ 2010-09-23 20:08 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2010-09-23 20:08 UTC (permalink / raw)
To: barebox
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
common/console.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/common/console.c b/common/console.c
index 889c262..204a08c 100644
--- a/common/console.c
+++ b/common/console.c
@@ -135,6 +135,7 @@ int console_register(struct console_device *newcdev)
int first = 0;
char ch;
+ dev->id = -1;
strcpy(dev->name, "cs");
dev->type_data = newcdev;
register_device(dev);
--
1.7.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-23 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-23 20:08 [PATCH 1/2] netconsole: remove non-needed setbaudrate Jean-Christophe PLAGNIOL-VILLARD
2010-09-23 20:08 ` [PATCH 2/2] console: set device_d id at -1 Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox