virtio_device_is_legacy_only is now unused, drop it from core.
Unified · Split
| @@ -278,12 +278,6 @@ static struct bus_type virtio_bus = { · 277 unmodified lines | |||
| 278 | .remove = virtio_dev_remove, | 278 | .remove = virtio_dev_remove, |
| 279 | }; | 279 | }; |
| 280 | 280 | ||
| 281 | bool virtio_device_is_legacy_only(struct virtio_device_id id) | ||
| 282 | { | ||
| 283 | return false; | ||
| 284 | } | ||
| 285 | EXPORT_SYMBOL_GPL(virtio_device_is_legacy_only); | ||
| 286 | |||
| 287 | int register_virtio_driver(struct virtio_driver *driver) | 281 | int register_virtio_driver(struct virtio_driver *driver) |
| 288 | { | 282 | { |
| 289 | /* Catch this early. */ | 283 | /* Catch this early. */ |
| @@ -108,8 +108,6 @@ struct virtio_device { · 107 unmodified lines | |||
| 108 | void *priv; | 108 | void *priv; |
| 109 | }; | 109 | }; |
| 110 | 110 | ||
| 111 | bool virtio_device_is_legacy_only(struct virtio_device_id id); | ||
| 112 | |||
| 113 | static inline struct virtio_device *dev_to_virtio(struct device *_dev) | 111 | static 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); |