Command line arguments for g_NCR5380 driver.

W. Friess (Wolfgang.Friess@dlr.de)
Mon, 15 Apr 1996 10:53:28 +0200


The following patch enables the passing of lilo command line arguments
to the generic NCR5380/NCR53C400 driver ("ncr53c400=base,irq",
"ncr5380=...") which is currently broken. With that one can use
the driver for the memory mapped 53C400 cards without having to
edit the Makefile.

Best regards, Wolfgang
___________________________________________________________
Wolfgang Friess, DLR, NE-HF, Postfach 11 16, 82230 Wessling
email: Wolfgang.Friess@dlr.de
Tel. +49(8153)28-2357, Fax -1135

diff -u -r v1.3.88/linux/drivers/scsi/g_NCR5380.c linux/drivers/scsi/g_NCR5380.c
--- v1.3.88/linux/drivers/scsi/g_NCR5380.c Fri Apr 12 08:49:41 1996
+++ linux/drivers/scsi/g_NCR5380.c Fri Apr 12 17:27:51 1996
@@ -122,13 +122,15 @@
static int commandline_current = 0;
switch (board) {
case BOARD_NCR5380:
- if (ints[0] != 2 && ints[0] != 3)
+ if (ints[0] != 2 && ints[0] != 3) {
printk("generic_NCR5380_setup : usage ncr5380=" STRVAL(NCR5380_map_name) ",irq,dma\n");
- return;
+ return;
+ }
case BOARD_NCR53C400:
- if (ints[0] != 2)
- printk("generic_NCR53C400_setup : usage ncr53c400= " STRVAL(NCR5380_map_name) ",irq\n");
- return;
+ if (ints[0] != 2) {
+ printk("generic_NCR53C400_setup : usage ncr53c400=" STRVAL(NCR5380_map_name) ",irq\n");
+ return;
+ }
}

if (commandline_current < NO_OVERRIDES) {