Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13ba9bcb authored by Kay Sievers's avatar Kay Sievers Committed by James Bottomley
Browse files

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

parent 8c8fdc59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);