public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix broken compilation of Cris serial driver
@ 2009-04-08 10:07 Claudio Scordino
  2009-04-08 10:12 ` Mikael Starvik
  2009-04-08 10:57 ` Jesper Nilsson
  0 siblings, 2 replies; 7+ messages in thread
From: Claudio Scordino @ 2009-04-08 10:07 UTC (permalink / raw)
  To: Jesper Nilsson, starvik
  Cc: Alan Cox, Hinko Kocevar, Janez Cufer, Andrew Morton, Linux Kernel,
	dev-etrax, adobriyan

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

Hi,

    compilation of cris serial driver on 2.6.30-rc1 is broken since 
commit number 0f043a81ebe84be3576667f04fdda481609e3816 removed the 
read_proc field from the tty_driver structure.

The patch in attachment may fix the problem. Please check it very 
carefully: I don't have hardware to make any test.

Regards,

           Claudio

[-- Attachment #2: 0001-Fix-remove-read_proc-field-from-cris-serial-driver.patch --]
[-- Type: text/x-diff, Size: 1305 bytes --]

From: Claudio Scordino <claudio@evidence.eu.com>

Commit number 0f043a81ebe84be3576667f04fdda481609e3816 removed the read_proc
field from the tty_driver structure.

This broke cris serial driver compilation.

Signed-off-by: Claudio Scordino <claudio@evidence.eu.com>
---
 drivers/serial/crisv10.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/serial/crisv10.c b/drivers/serial/crisv10.c
index 7ba7d70..a331e40 100644
--- a/drivers/serial/crisv10.c
+++ b/drivers/serial/crisv10.c
@@ -27,6 +27,7 @@ static char *serial_version = "$Revision: 1.25 $";
 #include <linux/kernel.h>
 #include <linux/mutex.h>
 #include <linux/bitops.h>
+#include <linux/proc_fs.h>
 
 #include <asm/io.h>
 #include <asm/irq.h>
@@ -4425,7 +4426,6 @@ static const struct tty_operations rs_ops = {
 	.break_ctl = rs_break,
 	.send_xchar = rs_send_xchar,
 	.wait_until_sent = rs_wait_until_sent,
-	.read_proc = rs_read_proc,
 	.tiocmget = rs_tiocmget,
 	.tiocmset = rs_tiocmset
 };
@@ -4490,6 +4490,7 @@ rs_init(void)
 	if (tty_register_driver(driver))
 		panic("Couldn't register serial driver\n");
 	/* do some initializing for the separate ports */
+	driver->proc_entry->read_proc = rs_read_proc;
 
 	for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) {
 		if (info->enabled) {
-- 
1.5.4.3


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

end of thread, other threads:[~2009-04-08 15:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-08 10:07 [PATCH] Fix broken compilation of Cris serial driver Claudio Scordino
2009-04-08 10:12 ` Mikael Starvik
2009-04-08 10:45   ` Claudio Scordino
2009-04-08 10:57 ` Jesper Nilsson
2009-04-08 12:51   ` Alexey Dobriyan
2009-04-08 14:00     ` Jesper Nilsson
2009-04-08 15:52       ` Jesper Nilsson

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