Skip to content

Commit

Permalink
virtio: drop virtio_device_is_legacy_only
Browse files Browse the repository at this point in the history
virtio_device_is_legacy_only is now unused, drop
it from core.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Michael S. Tsirkin authored and Rusty Russell committed Apr 15, 2015
1 parent f71d828 commit 9abbfb4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions drivers/virtio/virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,6 @@ static struct bus_type virtio_bus = {
.remove = virtio_dev_remove,
};

bool virtio_device_is_legacy_only(struct virtio_device_id id)
{
return false;
}
EXPORT_SYMBOL_GPL(virtio_device_is_legacy_only);

int register_virtio_driver(struct virtio_driver *driver)
{
/* Catch this early. */
Expand Down
2 changes: 0 additions & 2 deletions include/linux/virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ struct virtio_device {
void *priv;
};

bool virtio_device_is_legacy_only(struct virtio_device_id id);

static inline struct virtio_device *dev_to_virtio(struct device *_dev)
{
return container_of(_dev, struct virtio_device, dev);
Expand Down

0 comments on commit 9abbfb4

Please sign in to comment.