Hi!

The attached patch puts the following functions into the .text.init
section.

aha1542_in
        called by aha1542_getconfig, aha1542_query (all initfuncs)

aha1542_mbenable
        called by aha1542_query (initfunc)

aha1542_in1
        called in aha1542_mbenable (now also an initfunc)

Patch is against 2.4.4pre1.

Regards,

        Matze

-- 
Matthias Hanisch    mailto:[EMAIL PROTECTED]    phone: +49 8137 935-219
diff -ru linux-vanilla/drivers/scsi/aha1542.c linux/drivers/scsi/aha1542.c
--- linux-vanilla/drivers/scsi/aha1542.c        Mon Apr  9 22:13:58 2001
+++ linux/drivers/scsi/aha1542.c        Mon Apr  9 22:26:04 2001
@@ -254,7 +254,7 @@
 /* Only used at boot time, so we do not need to worry about latency as much
    here */
 
-static int aha1542_in(unsigned int base, unchar * cmdp, int len)
+static int __init aha1542_in(unsigned int base, unchar * cmdp, int len)
 {
        unsigned long flags;
 
@@ -276,7 +276,7 @@
 /* Similar to aha1542_in, except that we wait a very short period of time.
    We use this if we know the board is alive and awake, but we are not sure
    if the board will respond to the command we are about to send or not */
-static int aha1542_in1(unsigned int base, unchar * cmdp, int len)
+static int __init aha1542_in1(unsigned int base, unchar * cmdp, int len)
 {
        unsigned long flags;
 
@@ -886,7 +886,7 @@
 /* This function should only be called for 1542C boards - we can detect
    the special firmware settings and unlock the board */
 
-static int aha1542_mbenable(int base)
+static int __init aha1542_mbenable(int base)
 {
        static unchar mbenable_cmd[3];
        static unchar mbenable_result[2];

Reply via email to