Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1455138ioo; Fri, 27 May 2022 08:58:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzShaRfhyX92399Zx++/f66yWgJvdhgvAu4hY5q2nGT0KqG2Vl3D/kksugCXqz8KppIOvoQ X-Received: by 2002:a17:90a:cf83:b0:1e0:df1f:9748 with SMTP id i3-20020a17090acf8300b001e0df1f9748mr9207420pju.15.1653667092328; Fri, 27 May 2022 08:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653667092; cv=none; d=google.com; s=arc-20160816; b=DYI+eSgYhAGJtQrF3ffeg5v26Mogy1M7Fp+GeMB/KDc5rPR4nyJgwSfpstUSFqTTk7 Yvg10O78lIrHXn8fX2CQUXF7cT3B+zgS6fJhRIcmJ0gmiPvkBbEt2USmMT2ss/tbyISn MQxy5tH0h5cLqxX7Nlm2yIQaMaw3OiIuPuu1P33y/0i8KiEuLyWZuSDXDbiWuUdVYuHz Dq+lAmfgzyQ/UQM50Pquw9RqXl6mH2PGyNW7fuk3CY9HzP9KBwbeNDvcaDVzh+7mibwj YpiCG++z7RkxalI2SVTMgvNVuaam+Zr8DwnB3eKvBee/yTtuEnIeAu7zh/DbgfEQxo2u ZKfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+FTywoXi07dcTw5CGUAtJn6iINiKjEDS0h2uHmVqm0k=; b=Y6I2BQH2F4GQUFlWmJxbm3dL5FV9Mlkd32ewP0YL15bfVzo2nnRGMdhhInFZSL6lMc VPqgkDSSUbEoNEak41z4nsjxhre4eo2p17reRZSgI789PxcdF9s4aIL6MNp47ngz5N+E SjHBrw9h4p14j8Gk2dtLb5co4mP9saH4MBTW+Ick1MWfs4SHmhdAQ9V3oGfeW/z4IEOz RHDlFZ1V2seNX+xkmLVWdrRVsjOmyAEqXnkS3BG7YwRRcdKpt26nshDkaIldb/A9I0AO ipcfHU4ZRSDKBUnmNed9m++dpfrtjWmbqZzAx6FESOiQJHfidMUTiIq2rV8CbHwhW2KN uZIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TPeKw0Ue; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nm6-20020a17090b19c600b001e0434423c7si2515220pjb.41.2022.05.27.08.57.59; Fri, 27 May 2022 08:58:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TPeKw0Ue; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349527AbiEZX4r (ORCPT + 99 others); Thu, 26 May 2022 19:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349834AbiEZXzw (ORCPT ); Thu, 26 May 2022 19:55:52 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC47AED704; Thu, 26 May 2022 16:55:17 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id 67E0F1F459F5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1653609316; bh=nY0MryRm8EK3fifz2ya2uo9G85zwxQHFBXlNamou3uM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TPeKw0UeuJCFCD2HqILO4z07soz9OoaVsjzzQgbDfal9kRh9+jz7LvWATtBgQ/b/x kvsVGbXAIRgLSj/o3IsgG3e0m9ULZ09K0x1PLQHx2s1wX7O3I/nZ4aKNuIOeBTYCLM Jz14QKo4VICvqsgcicgS7cvaPCUF3AKEra860bEiriwvcZ5boXfPUq2UOT7/McCtXn 7aDOtQqFws0SBl2VPJtXQ7uWVDsUi1tK8X3qWklVQr01dlx2F+Y7Edi4uXRMSP3TXf y/NyD+h7NZMis9pT+P/8sCSKiMGjnY/ji3qklgJLLLPGW5QIO3uMNNLCXl2TLoAgoR 15ZWBWtRuh7HQ== From: Dmitry Osipenko To: David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Daniel Almeida , Gert Wollny , Gustavo Padovan , Daniel Stone , Tomeu Vizoso , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Steven Price , Alyssa Rosenzweig , Rob Clark , Emil Velikov , Robin Murphy , Qiang Yu , Sumit Semwal , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , Thierry Reding , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , Alex Deucher , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Dmitry Osipenko , Dmitry Osipenko , linux-tegra@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kernel@collabora.com Subject: [PATCH v6 20/22] drm/virtio: Use dev_is_pci() Date: Fri, 27 May 2022 02:50:38 +0300 Message-Id: <20220526235040.678984-21-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220526235040.678984-1-dmitry.osipenko@collabora.com> References: <20220526235040.678984-1-dmitry.osipenko@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use common dev_is_pci() helper to replace the strcmp("pci") used by driver. Suggested-by: Robin Murphy Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/virtio/virtgpu_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.35.3