aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAnirban Sinha <asinha@zeugmasystems.com>2009-09-14 14:13:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-14 20:41:42 -0400
commit353f6dd2dec992ddd34620a94b051b0f76227379 (patch)
tree38f48b57f8f0f1bb05983ec32205fac9b8bab14c /drivers
parentbb193c986a7104f718c1b92709e1e6e22ac3f864 (diff)
cleanup console_print()
console_print() is an old legacy interface mostly unused in the entire kernel tree. It's best to clean up its existing use and let developers use their own implementation of it as they feel fit. Signed-off-by: Anirban Sinha <asinha@zeugmasystems.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/serial167.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/serial167.c b/drivers/char/serial167.c
index 51e7a46787be..5942a9d674c0 100644
--- a/drivers/char/serial167.c
+++ b/drivers/char/serial167.c
@@ -171,7 +171,6 @@ static int startup(struct cyclades_port *);
171static void cy_throttle(struct tty_struct *); 171static void cy_throttle(struct tty_struct *);
172static void cy_unthrottle(struct tty_struct *); 172static void cy_unthrottle(struct tty_struct *);
173static void config_setup(struct cyclades_port *); 173static void config_setup(struct cyclades_port *);
174extern void console_print(const char *);
175#ifdef CYCLOM_SHOW_STATUS 174#ifdef CYCLOM_SHOW_STATUS
176static void show_status(int); 175static void show_status(int);
177#endif 176#endif
@@ -245,7 +244,7 @@ void SP(char *data)
245{ 244{
246 unsigned long flags; 245 unsigned long flags;
247 local_irq_save(flags); 246 local_irq_save(flags);
248 console_print(data); 247 printk(KERN_EMERG "%s", data);
249 local_irq_restore(flags); 248 local_irq_restore(flags);
250} 249}
251 250
@@ -255,7 +254,7 @@ void CP(char data)
255 unsigned long flags; 254 unsigned long flags;
256 local_irq_save(flags); 255 local_irq_save(flags);
257 scrn[0] = data; 256 scrn[0] = data;
258 console_print(scrn); 257 printk(KERN_EMERG "%c", scrn);
259 local_irq_restore(flags); 258 local_irq_restore(flags);
260} /* CP */ 259} /* CP */
261 260