Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18437
b: refs/heads/master
c: d405423
h: refs/heads/master
i:
  18435: a153f61
v: v3
  • Loading branch information
Christoph Hellwig authored and James Bottomley committed Jan 14, 2006
1 parent 2de8dbc commit 2c53fea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 745caf71d99c5d4ff4c9e4c0f74e64c429fed531
refs/heads/master: d4054239929479907f20b9d68c905589125ad343
12 changes: 11 additions & 1 deletion trunk/drivers/scsi/scsi_transport_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,17 @@ sas_rphy_delete(struct sas_rphy *rphy)
struct Scsi_Host *shost = dev_to_shost(parent->dev.parent);
struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);

scsi_remove_target(dev);
switch (rphy->identify.device_type) {
case SAS_END_DEVICE:
scsi_remove_target(dev);
break;
case SAS_EDGE_EXPANDER_DEVICE:
case SAS_FANOUT_EXPANDER_DEVICE:
device_for_each_child(dev, NULL, do_sas_phy_delete);
break;
default:
break;
}

transport_remove_device(dev);
device_del(dev);
Expand Down

0 comments on commit 2c53fea

Please sign in to comment.