]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[SCSI] aacraid: rename check_reset
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Aug 2007 21:50:30 +0000 (14:50 -0700)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:40:07 +0000 (14:40 -0400)
Too generic, clashes with ISDN.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aacraid/aachba.c
drivers/scsi/aacraid/aacraid.h
drivers/scsi/aacraid/commsup.c

index 6800e578e4b1f82dc2a9b4763588497f2835fe63..80e448d0f3dbd541bae7406b68617d904472bc13 100644 (file)
@@ -177,9 +177,9 @@ int check_interval = 24 * 60 * 60;
 module_param(check_interval, int, S_IRUGO|S_IWUSR);
 MODULE_PARM_DESC(check_interval, "Interval in seconds between adapter health checks.");
 
-int check_reset = 1;
-module_param(check_reset, int, S_IRUGO|S_IWUSR);
-MODULE_PARM_DESC(check_reset, "If adapter fails health check, reset the adapter.");
+int aac_check_reset = 1;
+module_param_named(check_reset, aac_check_reset, int, S_IRUGO|S_IWUSR);
+MODULE_PARM_DESC(aac_check_reset, "If adapter fails health check, reset the adapter.");
 
 int expose_physicals = -1;
 module_param(expose_physicals, int, S_IRUGO|S_IWUSR);
@@ -1305,7 +1305,7 @@ int aac_get_adapter_info(struct aac_dev* dev)
                          (int)sizeof(dev->supplement_adapter_info.VpdInfo.Tsid),
                          dev->supplement_adapter_info.VpdInfo.Tsid);
                }
-               if (!check_reset ||
+               if (!aac_check_reset ||
                  (dev->supplement_adapter_info.SupportedOptions2 &
                  le32_to_cpu(AAC_OPTION_IGNORE_RESET))) {
                        printk(KERN_INFO "%s%d: Reset Adapter Ignored\n",
index 94727b9375ecafde6fc46a74c4b7188bfe63fb2c..03b51025a8f441fdb4258d452f218fd5d05c8ee4 100644 (file)
@@ -1871,4 +1871,4 @@ extern int aac_reset_devices;
 extern int aac_commit;
 extern int update_interval;
 extern int check_interval;
-extern int check_reset;
+extern int aac_check_reset;
index bb870906b4cf72fa15ec8243403bf13812a1c824..240a0bb8986fe3d428c58430234f241bdddd7630 100644 (file)
@@ -1372,8 +1372,9 @@ int aac_check_health(struct aac_dev * aac)
 
        printk(KERN_ERR "%s: Host adapter BLINK LED 0x%x\n", aac->name, BlinkLED);
 
-       if (!check_reset || (aac->supplement_adapter_info.SupportedOptions2 &
-         le32_to_cpu(AAC_OPTION_IGNORE_RESET)))
+       if (!aac_check_reset ||
+               (aac->supplement_adapter_info.SupportedOptions2 &
+                       le32_to_cpu(AAC_OPTION_IGNORE_RESET)))
                goto out;
        host = aac->scsi_host_ptr;
        if (aac->thread->pid != current->pid)