Skip to content

Commit

Permalink
[SCSI] fix scsi_is_sdev_device() after switch to default sdev attributes
Browse files Browse the repository at this point in the history
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Kay Sievers authored and James Bottomley committed Oct 12, 2007
1 parent 8c8fdc5 commit 13ba9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/scsi_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ void scsi_sysfs_device_initialize(struct scsi_device *sdev)

int scsi_is_sdev_device(const struct device *dev)
{
return dev->release == scsi_device_dev_release;
return dev->type == &scsi_dev_type;
}
EXPORT_SYMBOL(scsi_is_sdev_device);

Expand Down

0 comments on commit 13ba9bc

Please sign in to comment.