mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* AHA1542 driver does not accept command-line options
@ 2001-01-09  3:28 Dmitry Potapov
  0 siblings, 0 replies; only message in thread
From: Dmitry Potapov @ 2001-01-09  3:28 UTC (permalink / raw)
  To: linux-kernel

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-09  3:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-09  3:28 AHA1542 driver does not accept command-line options Dmitry Potapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®