aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-03-05 08:52:39 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 15:48:28 -0500
commitadb636fe0845bf1b4dbcb546a1673f40a95062fd (patch)
tree51289918658e799d8c30a86e4952f77eee4b2c81 /arch/ia64
parent458cd31a4c33ce489eb538193f801ac73ff4010b (diff)
TTY: simserial, remove useless comments
Or the obsolete ones like: "Let's have a little bit of fun" I have never had fun with software. For fun, one needs hard-ware. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/hp/sim/simserial.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c
index 323c9325e570..d8237c341995 100644
--- a/arch/ia64/hp/sim/simserial.c
+++ b/arch/ia64/hp/sim/simserial.c
@@ -4,16 +4,11 @@
4 * This driver is mostly used for bringup purposes and will go away. 4 * This driver is mostly used for bringup purposes and will go away.
5 * It has a strong dependency on the system console. All outputs 5 * It has a strong dependency on the system console. All outputs
6 * are rerouted to the same facility as the one used by printk which, in our 6 * are rerouted to the same facility as the one used by printk which, in our
7 * case means sys_sim.c console (goes via the simulator). The code hereafter 7 * case means sys_sim.c console (goes via the simulator).
8 * is completely leveraged from the serial.c driver.
9 * 8 *
10 * Copyright (C) 1999-2000, 2002-2003 Hewlett-Packard Co 9 * Copyright (C) 1999-2000, 2002-2003 Hewlett-Packard Co
11 * Stephane Eranian <eranian@hpl.hp.com> 10 * Stephane Eranian <eranian@hpl.hp.com>
12 * David Mosberger-Tang <davidm@hpl.hp.com> 11 * David Mosberger-Tang <davidm@hpl.hp.com>
13 *
14 * 02/04/00 D. Mosberger Merged in serial.c bug fixes in rs_close().
15 * 02/25/00 D. Mosberger Synced up with 2.3.99pre-5 version of serial.c.
16 * 07/30/02 D. Mosberger Replace sti()/cli() with explicit spinlocks & local irq masking
17 */ 12 */
18 13
19#include <linux/init.h> 14#include <linux/init.h>
@@ -441,9 +436,6 @@ static int activate(struct tty_port *port, struct tty_struct *tty)
441 else 436 else
442 state->xmit.buf = (unsigned char *) page; 437 state->xmit.buf = (unsigned char *) page;
443 438
444 /*
445 * Allocate the IRQ if necessary
446 */
447 if (state->irq) { 439 if (state->irq) {
448 retval = request_irq(state->irq, rs_interrupt_single, 0, 440 retval = request_irq(state->irq, rs_interrupt_single, 0,
449 "simserial", state); 441 "simserial", state);
@@ -525,19 +517,6 @@ static const struct file_operations rs_proc_fops = {
525 .release = single_release, 517 .release = single_release,
526}; 518};
527 519
528/*
529 * ---------------------------------------------------------------------
530 * rs_init() and friends
531 *
532 * rs_init() is called at boot-time to initialize the serial driver.
533 * ---------------------------------------------------------------------
534 */
535
536/*
537 * This routine prints out the appropriate serial driver version
538 * number, and identifies which options were configured into this
539 * driver.
540 */
541static inline void show_serial_version(void) 520static inline void show_serial_version(void)
542{ 521{
543 printk(KERN_INFO "%s version %s with", serial_name, serial_version); 522 printk(KERN_INFO "%s version %s with", serial_name, serial_version);
@@ -567,9 +546,6 @@ static const struct tty_port_operations hp_port_ops = {
567 .shutdown = shutdown, 546 .shutdown = shutdown,
568}; 547};
569 548
570/*
571 * The serial driver boot-time initialization code!
572 */
573static int __init simrs_init(void) 549static int __init simrs_init(void)
574{ 550{
575 struct serial_state *state; 551 struct serial_state *state;
@@ -598,9 +574,6 @@ static int __init simrs_init(void)
598 hp_simserial_driver->flags = TTY_DRIVER_REAL_RAW; 574 hp_simserial_driver->flags = TTY_DRIVER_REAL_RAW;
599 tty_set_operations(hp_simserial_driver, &hp_ops); 575 tty_set_operations(hp_simserial_driver, &hp_ops);
600 576
601 /*
602 * Let's have a little bit of fun !
603 */
604 state = rs_table; 577 state = rs_table;
605 tty_port_init(&state->port); 578 tty_port_init(&state->port);
606 state->port.ops = &hp_port_ops; 579 state->port.ops = &hp_port_ops;