Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142010148
D54684.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
759 B
Referenced Files
None
Subscribers
None
D54684.diff
View Options
diff --git a/sys/dev/virtio/p9fs/virtio_p9fs.c b/sys/dev/virtio/p9fs/virtio_p9fs.c
--- a/sys/dev/virtio/p9fs/virtio_p9fs.c
+++ b/sys/dev/virtio/p9fs/virtio_p9fs.c
@@ -84,6 +84,8 @@
{ 0, NULL }
};
+VIRTIO_SIMPLE_PNPINFO(virtio_p9fs, VIRTIO_ID_9P, "VirtIO 9P Transport");
+
/* We don't currently allow canceling of virtio requests */
static int
vt9p_cancel(void *handle, struct p9_req_t *req)
@@ -257,13 +259,7 @@
static int
vt9p_probe(device_t dev)
{
-
- /* If the virtio device type is a 9P device, then we claim and attach it */
- if (virtio_get_device_type(dev) != VIRTIO_ID_9P)
- return (ENXIO);
- device_set_desc(dev, "VirtIO 9P Transport");
-
- return (BUS_PROBE_DEFAULT);
+ return (VIRTIO_SIMPLE_PROBE(dev, virtio_p9fs));
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 15, 9:19 PM (9 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27637993
Default Alt Text
D54684.diff (759 B)
Attached To
Mode
D54684: virtio_p9fs: Use VIRTIO_SIMPLE_PNPINFO
Attached
Detach File
Event Timeline
Log In to Comment