aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
995 995
996int scsi_is_sdev_device(const struct device *dev) 996int 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}
1000EXPORT_SYMBOL(scsi_is_sdev_device); 1000EXPORT_SYMBOL(scsi_is_sdev_device);
1001 1001