]> git.hungrycats.org Git - linux/commitdiff
SBP2(r1158): We don't need a remove_host callback in sbp2.
authorBen Collins <bcollins@debian.org>
Mon, 23 Feb 2004 14:10:20 +0000 (09:10 -0500)
committerBen Collins <bcollins@debian.org>
Mon, 23 Feb 2004 14:10:20 +0000 (09:10 -0500)
drivers/ieee1394/sbp2.c

index aaa5c23304b0e662feb807719e14625b47476a0a..be4b2201e575b0e73b16fca1847a6e38fd8d0635 100644 (file)
@@ -231,7 +231,6 @@ static Scsi_Host_Template scsi_driver_template;
 
 const u8 sbp2_speedto_max_payload[] = { 0x7, 0x8, 0x9, 0xA, 0xB, 0xC };
 
-static void sbp2_remove_host(struct hpsb_host *host);
 static void sbp2_host_reset(struct hpsb_host *host);
 
 static int sbp2_probe(struct device *dev);
@@ -240,7 +239,6 @@ static int sbp2_update(struct unit_directory *ud);
 
 static struct hpsb_highlevel sbp2_highlevel = {
        .name =         SBP2_DEVICE_NAME,
-       .remove_host =  sbp2_remove_host,
        .host_reset =   sbp2_host_reset,
 };
 
@@ -777,26 +775,6 @@ static void sbp2_host_reset(struct hpsb_host *host)
 }
 
 
-static void sbp2_remove_host(struct hpsb_host *host)
-{
-       struct sbp2scsi_host_info *hi;
-
-       SBP2_DEBUG("sbp2_remove_host");
-
-       hi = hpsb_get_hostinfo(&sbp2_highlevel, host);
-
-       if (hi) {
-               struct scsi_id_instance_data *scsi_id;
-
-               list_for_each_entry(scsi_id, &hi->scsi_ids, scsi_list) {
-                       down_write(&scsi_id->ud->device.bus->subsys.rwsem);
-                       device_release_driver(&scsi_id->ud->device);
-                       up_write(&scsi_id->ud->device.bus->subsys.rwsem);
-               }
-       }
-}
-
-
 /*
  * This function is where we first pull the node unique ids, and then
  * allocate memory and register a SBP-2 device.