Staging: hv: Add code to create the device directory under /sys/block/hdx
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
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.
Signed-off-by K. Y. Srinivasan <[email protected]>
--- drivers/staging/hv/blkvsc_drv.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/hv/blkvsc_drv.c +1 -0
@@ -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