Skip to contentSkip to conversation

Staging: hv: Add code to create the device directory under /sys/block/hdx

PATCH New Ky Srinivasan 1 participant 1 message Dec 17, 2010 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 Staging: hv: Add code to create the device directory under /sys/block/hdx

Add code to create the device directory under sysfs.

---
 drivers/staging/hv/blkvsc_drv.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/hv/blkvsc_drv.c +1 -0
index b3d05fc..4fb8094 100644
@@ -368,6 +368,7 @@ static int blkvsc_probe(struct device *device)
 		blkdev->gd->first_minor = 0;
 	blkdev->gd->fops = &block_ops;
 	blkdev->gd->private_data = blkdev;
+	blkdev->gd->driverfs_dev = &(blkdev->device_ctx->device);
 	sprintf(blkdev->gd->disk_name, "hd%c", 'a' + devnum);
 
 	blkvsc_do_inquiry(blkdev);
Signature · 1 line
1.7.1