]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] fix scsi_is_sdev_device() after switch to default sdev attributes
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 26 Sep 2007 17:54:49 +0000 (19:54 +0200)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:51:48 +0000 (14:51 -0400)
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_sysfs.c

index 0088c4dd7c6a4ceb9a41cef5e2a81f806f8db79a..8e880ef8b797a32ad2d3bff3f055241eec72f75a 100644 (file)
@@ -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);