Messages in this thread Patch in this message |  | | From | Dmitry Potapov <> | Date | Tue, 9 Jan 2001 06:28:00 +0300 | Subject | AHA1542 driver does not accept command-line options |
| |
When I switch to 2.4 kernel my SCSI card does not detect anymore, because AHA1542 driver does not accept kernel command-line options.
I send small patch to fix that.
I'm not subscribed at the kernel mail list, so please send any question/answer to my personal mail address.
Thanks, Dmitry Potapov
--- drivers/scsi/aha1542.c.orig Thu Nov 23 20:33:36 2000 +++ drivers/scsi/aha1542.c Tue Jan 9 04:45:12 2001 @@ -947,11 +947,12 @@ return 0; } -/* called from init/main.c */ +#ifndef MODULE +static int setup_idx = 0; + void __init aha1542_setup(char *str, int *ints) { const char *ahausage = "aha1542: usage: aha1542=<PORTBASE>[,<BUSON>,<BUSOFF>[,<DMASPEED>]]\n"; - static int setup_idx = 0; int setup_portbase; if (setup_idx >= MAXBOARDS) { @@ -1004,6 +1005,21 @@ ++setup_idx; } + +static int __init do_setup(char *str) +{ + int ints[4]; + + int count=setup_idx; + + get_options(str, sizeof(ints)/sizeof(int), ints); + aha1542_setup(str,ints); + + return count<setup_idx; +} + +__setup("aha1542=",do_setup); +#endif /* return non-zero on detection */ int aha1542_detect(Scsi_Host_Template * tpnt) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |