summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_sysfs.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-09-26 19:54:49 +0200
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:51:48 -0400
commit13ba9bcbfd6741e4c01ac5a505888b7b3a6d99da (patch)
tree62085a138f6daf365c39f5c5540e9e6b167b67f7 /drivers/scsi/scsi_sysfs.c
parent8c8fdc591057956c2ecbba1371a48b8857fe6d9d (diff)
downloadlinux-stable-13ba9bcbfd6741e4c01ac5a505888b7b3a6d99da.tar.gz
linux-stable-13ba9bcbfd6741e4c01ac5a505888b7b3a6d99da.tar.bz2
linux-stable-13ba9bcbfd6741e4c01ac5a505888b7b3a6d99da.zip
[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.c2
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)
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);