patch-2.4.0-test10 linux/drivers/char/esp.c
Next file: linux/drivers/char/ftape/lowlevel/fdc-io.c
Previous file: linux/drivers/char/epca.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Mon Oct 16 12:58:51 2000
- Orig file:
v2.4.0-test9/linux/drivers/char/esp.c
- Orig date:
Mon Feb 14 15:34:21 2000
diff -u --recursive --new-file v2.4.0-test9/linux/drivers/char/esp.c linux/drivers/char/esp.c
@@ -70,9 +70,8 @@
#define NR_PRIMARY 8 /* maximum number of primary ports */
/* The following variables can be set by giving module options */
-static int irq[NR_PRIMARY] = {0,0,0,0,0,0,0,0}; /* IRQ for each base port */
-static unsigned int divisor[NR_PRIMARY] = {0,0,0,0,0,0,0,0};
- /* custom divisor for each port */
+static int irq[NR_PRIMARY]; /* IRQ for each base port */
+static unsigned int divisor[NR_PRIMARY]; /* custom divisor for each port */
static unsigned int dma = ESP_DMA_CHANNEL; /* DMA channel */
static unsigned int rx_trigger = ESP_RX_TRIGGER;
static unsigned int tx_trigger = ESP_TX_TRIGGER;
@@ -168,7 +167,7 @@
* buffer across all the serial ports, since it significantly saves
* memory if large numbers of serial ports are open.
*/
-static unsigned char *tmp_buf = 0;
+static unsigned char *tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
static inline int serial_paranoia_check(struct esp_struct *info,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)