aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-04-14 20:47:45 -0400
committerRusty Russell <rusty@rustcorp.com.au>2015-04-14 23:11:14 -0400
commit9abbfb486f5c254805bb6a3f263bc14d989eb90b (patch)
treedef37cd4dc4e072abaf4e2e588db7a5432929c1a
parentf71d8286c1368f2dbbed5d1b59a574c7f25701e8 (diff)
virtio: drop virtio_device_is_legacy_only
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>
-rw-r--r--drivers/virtio/virtio.c6
-rw-r--r--include/linux/virtio.h2
2 files changed, 0 insertions, 8 deletions
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index 5fa67b5282ad..b1877d73fa56 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -278,12 +278,6 @@ static struct bus_type virtio_bus = {
278 .remove = virtio_dev_remove, 278 .remove = virtio_dev_remove,
279}; 279};
280 280
281bool virtio_device_is_legacy_only(struct virtio_device_id id)
282{
283 return false;
284}
285EXPORT_SYMBOL_GPL(virtio_device_is_legacy_only);
286
287int register_virtio_driver(struct virtio_driver *driver) 281int register_virtio_driver(struct virtio_driver *driver)
288{ 282{
289 /* Catch this early. */ 283 /* Catch this early. */
diff --git a/include/linux/virtio.h b/include/linux/virtio.h
index 28f0e65b9a11..8f4d4bfa6d46 100644
--- a/include/linux/virtio.h
+++ b/include/linux/virtio.h
@@ -108,8 +108,6 @@ struct virtio_device {
108 void *priv; 108 void *priv;
109}; 109};
110 110
111bool virtio_device_is_legacy_only(struct virtio_device_id id);
112
113static inline struct virtio_device *dev_to_virtio(struct device *_dev) 111static inline struct virtio_device *dev_to_virtio(struct device *_dev)
114{ 112{
115 return container_of(_dev, struct virtio_device, dev); 113 return container_of(_dev, struct virtio_device, dev);