Ky Srinivasan
2010-Dec-17 01:59 UTC
[PATCH] 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 <ksrinivasan at novell.com> --- drivers/staging/hv/blkvsc_drv.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index b3d05fc..4fb8094 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c @@ -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); -- 1.7.1
Reasonably Related Threads
- [PATCH] Staging: hv: Add code to create the device directory under /sys/block/hdx
- [PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
- [PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
- [PATCH ] Staging: hv: Hyper-V driver cleanup
- [PATCH ] Staging: hv: Hyper-V driver cleanup