Commit a9d2e8b5 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Gerd Hoffmann

drm/virtio: Use dev_is_pci()

Use common dev_is_pci() helper to replace the strcmp("pci") used by driver.
Suggested-by: default avatarRobin Murphy <robin.murphy@arm.com>
Signed-off-by: default avatarDmitry Osipenko <dmitry.osipenko@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220630200726.1884320-9-dmitry.osipenko@collabora.comSigned-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent b5c9ed70
...@@ -87,7 +87,7 @@ static int virtio_gpu_probe(struct virtio_device *vdev) ...@@ -87,7 +87,7 @@ static int virtio_gpu_probe(struct virtio_device *vdev)
return PTR_ERR(dev); return PTR_ERR(dev);
vdev->priv = dev; vdev->priv = dev;
if (!strcmp(vdev->dev.parent->bus->name, "pci")) { if (dev_is_pci(vdev->dev.parent)) {
ret = virtio_gpu_pci_quirk(dev); ret = virtio_gpu_pci_quirk(dev);
if (ret) if (ret)
goto err_free; goto err_free;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment