projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ebe30
)
virtio: Fix sysfs bits to have proper block symlink
author
Jeremy Katz
<katzj@redhat.com>
Sun, 2 Mar 2008 22:00:15 +0000
(17:00 -0500)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 17 Mar 2008 11:58:15 +0000
(22:58 +1100)
Fix up so that the virtio_blk devices in sysfs link correctly to their
block device. This then allows them to be detected by hal, etc
Signed-off-by: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/virtio_blk.c
b/drivers/block/virtio_blk.c
index 3b1a68d6eddb3c0860794c778a643340b59ec920..0cfbe8c594a55c208a7727cc20a86db0e33ba704 100644
(file)
--- a/
drivers/block/virtio_blk.c
+++ b/
drivers/block/virtio_blk.c
@@
-238,6
+238,7
@@
static int virtblk_probe(struct virtio_device *vdev)
vblk->disk->first_minor = index_to_minor(index);
vblk->disk->private_data = vblk;
vblk->disk->fops = &virtblk_fops;
+ vblk->disk->driverfs_dev = &vdev->dev;
index++;
/* If barriers are supported, tell block layer that queue is ordered */