Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107580
b: refs/heads/master
c: e8bac9e
h: refs/heads/master
v: v3
  • Loading branch information
James Bottomley authored and James Bottomley committed Jul 30, 2008
1 parent 896849f commit 3c36e48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 671a99c8eb2f1dde08ac5538d8cd912047c61ddf
refs/heads/master: e8bac9e0647dd04c83fd0bfe7cdfe2f6dfb100d0
8 changes: 5 additions & 3 deletions trunk/drivers/scsi/scsi_transport_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,14 @@ spi_transport_rd_attr(rti, "%d\n");
spi_transport_rd_attr(pcomp_en, "%d\n");
spi_transport_rd_attr(hold_mcs, "%d\n");

/* we only care about the first child device so we return 1 */
/* we only care about the first child device that's a real SCSI device
* so we return 1 to terminate the iteration when we find it */
static int child_iter(struct device *dev, void *data)
{
struct scsi_device *sdev = to_scsi_device(dev);
if (!scsi_is_sdev_device(dev))
return 0;

spi_dv_device(sdev);
spi_dv_device(to_scsi_device(dev));
return 1;
}

Expand Down

0 comments on commit 3c36e48

Please sign in to comment.