aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorJoe Korty <joe.korty@ccur.com>2007-10-02 17:38:08 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:54:42 -0400
commit89932697ce742c094916d8270c282042b24776b3 (patch)
treea9a0e64fa8b3cc32b0a008b820d1a27d9bf1c16f /drivers/scsi
parentd773c082da27c445c832324cfb4a357498613a38 (diff)
[SCSI] dpt_i2o: Fix section mismatch
Fix section mismatch in the Adaptec DPT SCSI Raid driver. WARNING: vmlinux.o(.init.text+0x1fcd2): Section mismatch: reference to .exit.text:adpt_exit (between 'adpt_init' and 'ahc_linux_init') This warning is due to adaptec device detection calling the exit routine on failure to properly register the adaptec device. The exit routine + call was added on July 30 by Commit: 55d9fcf57ba5ec427544fca7abc335cf3da78160 Author: Matthew Wilcox Subject: [SCSI] dpt_i2o: convert to SCSI hotplug model. Mathew: isn't a module exit routine a little too strong to be calling on the failure of a single device? Module exit implies that other, non-failing adaptec raid devices will also get shut down. Signed-off-by: Joe Korty <joe.korty@ccur.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/dpt_i2o.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c
index 9d7bdf73e1e3..bea9d659af15 100644
--- a/drivers/scsi/dpt_i2o.c
+++ b/drivers/scsi/dpt_i2o.c
@@ -3346,7 +3346,7 @@ static int __init adpt_init(void)
3346 return count > 0 ? 0 : -ENODEV; 3346 return count > 0 ? 0 : -ENODEV;
3347} 3347}
3348 3348
3349static void __exit adpt_exit(void) 3349static void adpt_exit(void)
3350{ 3350{
3351 while (hba_chain) 3351 while (hba_chain)
3352 adpt_release(hba_chain); 3352 adpt_release(hba_chain);