All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sparc: remove sunzilog_console_init
@ 2006-06-28 14:16 Martin Habets
  2006-06-28 14:34 ` Martin Habets
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Martin Habets @ 2006-06-28 14:16 UTC (permalink / raw)
  To: sparclinux

Hi,

This patch against 2.6.17 resolves the following build warning:
  CC      drivers/serial/sunzilog.o
drivers/serial/sunzilog.c:1390: warning: `sunzilog_console_init' defined but not used

It was tested on a SS20 with the console on a sunzilog.

Martin

--- 2.6.17/drivers/serial/sunzilog.c.old	2006-06-28 15:04:17.000000000 +0100
+++ 2.6.17/drivers/serial/sunzilog.c	2006-06-28 15:07:43.000000000 +0100
@@ -1386,28 +1386,6 @@
 	.data   =	&sunzilog_reg,
 };
 
-static int __init sunzilog_console_init(void)
-{
-	int i;
-
-	if (con_is_present())
-		return 0;
-
-	for (i = 0; i < NUM_CHANNELS; i++) {
-		int this_minor = sunzilog_reg.minor + i;
-
-		if ((this_minor - 64) = (serial_console - 1))
-			break;
-	}
-	if (i = NUM_CHANNELS)
-		return 0;
-
-	sunzilog_console.index = i;
-	sunzilog_port_table[i].flags |= SUNZILOG_FLAG_IS_CONS;
-	register_console(&sunzilog_console);
-	return 0;
-}
-
 static inline struct console *SUNZILOG_CONSOLE(void)
 {
 	int i;
@@ -1432,7 +1410,6 @@
 
 #else
 #define SUNZILOG_CONSOLE()	(NULL)
-#define sunzilog_console_init() do { } while (0)
 #endif
 
 /*

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

end of thread, other threads:[~2006-06-29 22:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-28 14:16 [PATCH] sparc: remove sunzilog_console_init Martin Habets
2006-06-28 14:34 ` Martin Habets
2006-06-28 16:43 ` Raymond Burns
2006-06-28 18:32 ` David Miller
2006-06-28 18:35 ` David Miller
2006-06-29 17:02 ` Martin Habets
2006-06-29 17:08 ` Martin Habets
2006-06-29 19:53 ` David Miller
2006-06-29 19:54 ` David Miller
2006-06-29 22:19 ` Raymond Burns

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.