Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.0-test10 /drivers/char/serial.c

Filename:/drivers/char/serial.c
Lines Added:10
Lines Deleted:14
Also changed in: (Previous) 2.4.0-test9  2.4.0-test8  2.4.0-test7  2.4.0-test5  2.4.0-test3  2.4.0-test2 
(Following) 2.4.0-test12  2.4.0-ac1  2.4.0-ac2  2.4.0-ac3  2.4.0-ac4  2.4.0-ac5 

Location
[  2.4.0-test10
  [  drivers
    [  char
       o  serial.c

Patch

diff -u --recursive --new-file v2.4.0-test9/linux/drivers/char/serial.c linux/drivers/char/serial.c
--- v2.4.0-test9/linux/drivers/char/serial.c   Sun Oct  8 10:50:17 2000
+++ linux/drivers/char/serial.c   Mon Oct 16 12:58:51 2000
@@ -267,7 +267,7 @@
 static int IRQ_timeout[NR_IRQS];
 #ifdef CONFIG_SERIAL_CONSOLE
 static struct console sercons;
-static int lsr_break_flag = 0;
+static int lsr_break_flag;
 #endif
 #if defined(CONFIG_SERIAL_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
 static unsigned long break_pressed; /* break, really ... */
@@ -325,7 +325,7 @@
 #define NR_PCI_BOARDS   8
 
 static struct pci_board_inst   serial_pci_board[NR_PCI_BOARDS];
-static int serial_pci_board_idx = 0;
+static int serial_pci_board_idx;
 
 #ifndef IS_PCI_REGION_IOPORT
 #define IS_PCI_REGION_IOPORT(dev, r) (pci_resource_flags((dev), (r)) & \
@@ -1060,7 +1060,7 @@
  */
 static void rs_timer(unsigned long dummy)
 {
-   static unsigned long last_strobe = 0;
+   static unsigned long last_strobe;
    struct async_struct *info;
    unsigned int   i;
    unsigned long flags;
@@ -5666,17 +5666,13 @@
 }
 
 static struct console sercons = {
-   "ttyS",
-   serial_console_write,
-   NULL,
-   serial_console_device,
-   serial_console_wait_key,
-   NULL,
-   serial_console_setup,
-   CON_PRINTBUFFER,
-   -1,
-   0,
-   NULL
+   name:      "ttyS",
+   write:      serial_console_write,
+   device:      serial_console_device,
+   wait_key:   serial_console_wait_key,
+   setup:      serial_console_setup,
+   flags:      CON_PRINTBUFFER,
+   index:      -1,
 };
 
 /*


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.