提交 13ba9bcb 编写于 作者: K Kay Sievers 提交者: James Bottomley

[SCSI] fix scsi_is_sdev_device() after switch to default sdev attributes

Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 8c8fdc59
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册