Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147972
b: refs/heads/master
c: e335385
h: refs/heads/master
v: v3
  • Loading branch information
Christian Borntraeger authored and Rusty Russell committed Jun 12, 2009
1 parent 01e2d41 commit 3da2732
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c89e80168ba1ed37627fe03116b0cf8474dcb7e0
refs/heads/master: e3353853730eb99c56b7b0aed1667d51c0e3699a
2 changes: 1 addition & 1 deletion trunk/drivers/virtio/virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static struct device_attribute virtio_dev_attrs[] = {
static inline int virtio_id_match(const struct virtio_device *dev,
const struct virtio_device_id *id)
{
if (id->device != dev->id.device)
if (id->device != dev->id.device && id->device != VIRTIO_DEV_ANY_ID)
return 0;

return id->vendor == VIRTIO_DEV_ANY_ID || id->vendor == dev->id.vendor;
Expand Down
2 changes: 1 addition & 1 deletion trunk/scripts/mod/file2alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ static int do_virtio_entry(const char *filename, struct virtio_device_id *id,
id->vendor = TO_NATIVE(id->vendor);

strcpy(alias, "virtio:");
ADD(alias, "d", 1, id->device);
ADD(alias, "d", id->device != VIRTIO_DEV_ANY_ID, id->device);
ADD(alias, "v", id->vendor != VIRTIO_DEV_ANY_ID, id->vendor);

add_wildcard(alias);
Expand Down

0 comments on commit 3da2732

Please sign in to comment.