diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-09-26 13:54:49 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:51:48 -0400 |
commit | 13ba9bcbfd6741e4c01ac5a505888b7b3a6d99da (patch) | |
tree | 62085a138f6daf365c39f5c5540e9e6b167b67f7 /drivers/scsi/scsi_sysfs.c | |
parent | 8c8fdc591057956c2ecbba1371a48b8857fe6d9d (diff) |
[SCSI] fix scsi_is_sdev_device() after switch to default sdev attributes
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
-rw-r--r-- | drivers/scsi/scsi_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 0088c4dd7c6a..8e880ef8b797 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c | |||
@@ -995,7 +995,7 @@ void scsi_sysfs_device_initialize(struct scsi_device *sdev) | |||
995 | 995 | ||
996 | int scsi_is_sdev_device(const struct device *dev) | 996 | int scsi_is_sdev_device(const struct device *dev) |
997 | { | 997 | { |
998 | return dev->release == scsi_device_dev_release; | 998 | return dev->type == &scsi_dev_type; |
999 | } | 999 | } |
1000 | EXPORT_SYMBOL(scsi_is_sdev_device); | 1000 | EXPORT_SYMBOL(scsi_is_sdev_device); |
1001 | 1001 | ||