mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
virtio: drop legacy_only driver flag
legacy_only flag is now unused, drop it from core. Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Cornelia Huck <[email protected]>
This commit is contained in:
parent
63d9f218a3
commit
d71a6fc6b9
2 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue