[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>
This commit is contained in:
parent
8c8fdc5910
commit
13ba9bcbfd
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue