Browse Source

[PATCH] CCISS: add device symlink to the block cciss block devices in sysfs

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman 19 năm trước cách đây
mục cha
commit
27c0ff868f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      drivers/block/cciss.c

+ 1 - 0
drivers/block/cciss.c

@@ -3237,6 +3237,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
 		disk->fops = &cciss_fops;
 		disk->fops = &cciss_fops;
 		disk->queue = q;
 		disk->queue = q;
 		disk->private_data = drv;
 		disk->private_data = drv;
+		disk->driverfs_dev = &pdev->dev;
 		/* we must register the controller even if no disks exist */
 		/* we must register the controller even if no disks exist */
 		/* this is for the online array utilities */
 		/* this is for the online array utilities */
 		if(!drv->heads && j)
 		if(!drv->heads && j)