Merge branch 'for-3.1-rc1' of git://gitorious.org/linux-omap-dss2/linux
[cascardo/linux.git] / drivers / scsi / mac_scsi.c
index bf2a1c5..af3a6af 100644 (file)
@@ -214,13 +214,6 @@ static int __init mac_scsi_setup(char *str) {
 
 __setup("mac5380=", mac_scsi_setup);
 
-/*
- * If you want to find the instance with (k)gdb ...
- */
-#if NDEBUG
-static struct Scsi_Host *default_instance;
-#endif
-
 /*
  * Function : int macscsi_detect(struct scsi_host_template * tpnt)
  *
@@ -233,7 +226,7 @@ static struct Scsi_Host *default_instance;
  *
  */
  
-int macscsi_detect(struct scsi_host_template * tpnt)
+int __init macscsi_detect(struct scsi_host_template * tpnt)
 {
     static int called = 0;
     int flags = 0;
@@ -268,10 +261,7 @@ int macscsi_detect(struct scsi_host_template * tpnt)
     /* Once we support multiple 5380s (e.g. DuoDock) we'll do
        something different here */
     instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
-#if NDEBUG
-    default_instance = instance;
-#endif
-    
+
     if (macintosh_config->ident == MAC_MODEL_IIFX) {
        mac_scsi_regp  = via1+0x8000;
        mac_scsi_drq   = via1+0xE000;