]> err.no Git - linux-2.6/blobdiff - drivers/scsi/gdth.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
[linux-2.6] / drivers / scsi / gdth.c
index e8010a702e73c6a0c33d0cadbe624b5c8d89947e..3ac080ee6e2f2785230259e595d39d806ebeed26 100644 (file)
@@ -5213,6 +5213,10 @@ static int __init gdth_init(void)
 #endif /* CONFIG_PCI */
 
        TRACE2(("gdth_detect() %d controller detected\n", gdth_ctr_count));
+
+       if (list_empty(&gdth_instances))
+               return -ENODEV;
+
 #ifdef GDTH_STATISTICS
        TRACE2(("gdth_detect(): Initializing timer !\n"));
        init_timer(&gdth_timer);