lkml.org 
[lkml]   [2008]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 2.6.26-rc5 1/2] cris: compile fixes for 2.6.26-rc5
Add dummy ops for serial debug port.

Signed-off-by: Hinko Kocevar <hinko.kocevar@cetrtapot.si>

---

diff --git a/arch/cris/arch-v10/kernel/debugport.c b/arch/cris/arch-v10/kernel/debugport.c
index 04d5eee..429a281 100644
--- a/arch/cris/arch-v10/kernel/debugport.c
+++ b/arch/cris/arch-v10/kernel/debugport.c
@@ -432,6 +432,13 @@ dummy_write_room(struct tty_struct *tty)
return 8192;
}

+static struct tty_operations dummy_ops = {
+ .open = &dummy_open,
+ .close = &dummy_close,
+ .write = &dummy_write,
+ .write_room = &dummy_write_room,
+};
+
void __init
init_dummy_console(void)
{
@@ -448,10 +455,7 @@ init_dummy_console(void)
B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */
dummy_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;

- dummy_driver.open = dummy_open;
- dummy_driver.close = dummy_close;
- dummy_driver.write = dummy_write;
- dummy_driver.write_room = dummy_write_room;
+ dummy_driver.ops = &dummy_ops;
if (tty_register_driver(&dummy_driver))
panic("Couldn't register dummy serial driver\n");
}
\
 
 \ /
  Last update: 2008-06-06 13:41    [W:0.065 / U:2.420 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site