From: Dmitry Potapov <dpotapov@capitalsoft.com>
To: linux-kernel@vger.kernel.org
Subject: AHA1542 driver does not accept command-line options
Date: Tue, 9 Jan 2001 06:28:00 +0300 [thread overview]
Message-ID: <20010109062800.A644@potapov.private> (raw)
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/
reply other threads:[~2001-01-09 3:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010109062800.A644@potapov.private \
--to=dpotapov@capitalsoft.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®