Просмотр исходного кода

[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>
Kay Sievers 17 лет назад
Родитель
Сommit
13ba9bcbfd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      drivers/scsi/scsi_sysfs.c

+ 1 - 1
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);