From patchwork Thu Aug 8 15:15:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 13757771 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8D092C52D7E for ; Thu, 8 Aug 2024 15:16:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2FF4910E75F; Thu, 8 Aug 2024 15:16:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Q42q63K1"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 600FB10E75E; Thu, 8 Aug 2024 15:16:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723130171; x=1754666171; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ysm8HuM0CPlvglpD4V4sNrjQFY4ILcsuZ0Gq7ohQpXY=; b=Q42q63K1oa+vg5cMhX/HcdcU62jGyb3dJhjQLMt3PmWo1KmzAXy8iejz x6NnzQT9pfA+tfufdk/cp8aCUVE2Kj68Gr7b0kzbqx40GEKwPAIpDkk+C 4VJv3Zq1ZL2NlVgx+vpTTjSR7wkIlQaKVZusJYGjDObpuyXTOWOXZEnH3 02JCC7ChP+nf/a2hxnzTVPPGL28TVIuVnYl3AUTn4aohgxABtQuayR+bp IiKLvSzon3AaXlm6I/3tm5lX/JpCX40gkYRDHTdUGaSs6Qov0HQImRLE0 JK8BaOVRnw2zbQLL7jEQqpbpCppV6K24AuW2LsjPqCR1XLa1/Hrm12d/c g==; X-CSE-ConnectionGUID: Nyui4zgqThyk4++iCsTdfw== X-CSE-MsgGUID: oSW1fuY0SZme9LztxtGT4Q== X-IronPort-AV: E=McAfee;i="6700,10204,11158"; a="20832167" X-IronPort-AV: E=Sophos;i="6.09,273,1716274800"; d="scan'208";a="20832167" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2024 08:16:11 -0700 X-CSE-ConnectionGUID: 0edIDMJaSz+E795QDx89gw== X-CSE-MsgGUID: Lyw+R5xuRHKgz9pnKrDHbg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,273,1716274800"; d="scan'208";a="61878373" Received: from jnikula-mobl4.fi.intel.com (HELO localhost) ([10.237.66.160]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2024 08:16:09 -0700 From: Jani Nikula To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: Gustavo Sousa , lucas.demarchi@intel.com, jani.nikula@intel.com Subject: [PATCH v2 02/10] drm/xe: use pdev_to_xe_device() instead of pci_get_drvdata() directly Date: Thu, 8 Aug 2024 18:15:47 +0300 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" We have a helper for converting pci device to xe device, use it. Reviewed-by: Gustavo Sousa Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/xe_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index f818aa69f3ca..7bb811b4a057 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -752,7 +752,7 @@ static void xe_pci_remove(struct pci_dev *pdev) { struct xe_device *xe; - xe = pci_get_drvdata(pdev); + xe = pdev_to_xe_device(pdev); if (!xe) /* driver load aborted, nothing to cleanup */ return;