Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105767
b: refs/heads/master
c: e962fa6
h: refs/heads/master
i:
  105765: 8ed2811
  105763: 57067a5
  105759: b3c4209
v: v3
  • Loading branch information
Mark McLoughlin authored and Rusty Russell committed Jul 25, 2008
1 parent 0024e31 commit 8ad4822
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 44653eae1407f79dff6f52fcf594ae84cb165ec4
refs/heads/master: e962fa660d391fc9b90988e6538c94c858c099f9
18 changes: 9 additions & 9 deletions trunk/drivers/virtio/virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ static int virtio_uevent(struct device *_dv, struct kobj_uevent_env *env)
dev->id.device, dev->id.vendor);
}

static struct bus_type virtio_bus = {
.name = "virtio",
.match = virtio_dev_match,
.dev_attrs = virtio_dev_attrs,
.uevent = virtio_uevent,
};

static void add_status(struct virtio_device *dev, unsigned status)
{
dev->config->set_status(dev, dev->config->get_status(dev) | status);
Expand Down Expand Up @@ -147,13 +140,20 @@ static int virtio_dev_remove(struct device *_d)
return 0;
}

static struct bus_type virtio_bus = {
.name = "virtio",
.match = virtio_dev_match,
.dev_attrs = virtio_dev_attrs,
.uevent = virtio_uevent,
.probe = virtio_dev_probe,
.remove = virtio_dev_remove,
};

int register_virtio_driver(struct virtio_driver *driver)
{
/* Catch this early. */
BUG_ON(driver->feature_table_size && !driver->feature_table);
driver->driver.bus = &virtio_bus;
driver->driver.probe = virtio_dev_probe;
driver->driver.remove = virtio_dev_remove;
return driver_register(&driver->driver);
}
EXPORT_SYMBOL_GPL(register_virtio_driver);
Expand Down

0 comments on commit 8ad4822

Please sign in to comment.