From: Dmitry Osipenko Date: Thu, 30 Jun 2022 20:07:25 +0000 (+0300) Subject: drm/virtio: Use dev_is_pci() X-Git-Tag: v6.1-rc5~176^2~22^2~114 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9d2e8b5f1e5caa3cb038d7bb7bab530bcce5af1;hp=b5c9ed70d1a94c59dad7b1ecfc928863c0fe6ac0;p=platform%2Fkernel%2Flinux-starfive.git drm/virtio: Use dev_is_pci() Use common dev_is_pci() helper to replace the strcmp("pci") used by driver. Suggested-by: Robin Murphy Signed-off-by: Dmitry Osipenko Link: http://patchwork.freedesktop.org/patch/msgid/20220630200726.1884320-9-dmitry.osipenko@collabora.com Signed-off-by: Gerd Hoffmann --- diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c b/drivers/gpu/drm/virtio/virtgpu_drv.c index 0141b7df97ec..0035affc3e59 100644 --- a/drivers/gpu/drm/virtio/virtgpu_drv.c +++ b/drivers/gpu/drm/virtio/virtgpu_drv.c @@ -87,7 +87,7 @@ static int virtio_gpu_probe(struct virtio_device *vdev) return PTR_ERR(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); if (ret) goto err_free;