Skip to content

Commit

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

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
  • Loading branch information
Michael S. Tsirkin committed Dec 9, 2014
1 parent 63d9f21 commit d71a6fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions drivers/virtio/virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ static int virtio_dev_probe(struct device *_d)
driver_features_legacy = driver_features;
}

/* Detect legacy-only drivers and disable VIRTIO_F_VERSION_1. */
if (drv->legacy_only)
device_features &= ~(1ULL << VIRTIO_F_VERSION_1);

if (device_features & (1ULL << VIRTIO_F_VERSION_1))
dev->features = driver_features & device_features;
else
Expand Down
2 changes: 0 additions & 2 deletions include/linux/virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ int virtio_device_restore(struct virtio_device *dev);
* @feature_table_size: number of entries in the feature table array.
* @feature_table_legacy: same as feature_table but when working in legacy mode.
* @feature_table_size_legacy: number of entries in feature table legacy array.
* @legacy_only: driver does not support virtio 1.0.
* @probe: the function to call when a device is found. Returns 0 or -errno.
* @remove: the function to call when a device is removed.
* @config_changed: optional function to call when the device configuration
Expand All @@ -147,7 +146,6 @@ struct virtio_driver {
unsigned int feature_table_size;
const unsigned int *feature_table_legacy;
unsigned int feature_table_size_legacy;
bool legacy_only;
int (*probe)(struct virtio_device *dev);
void (*scan)(struct virtio_device *dev);
void (*remove)(struct virtio_device *dev);
Expand Down

0 comments on commit d71a6fc

Please sign in to comment.