Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2489270lqp; Sun, 24 Mar 2024 23:14:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVMK05XmxzLOc51ftCqgm7SDPKtiTP/DpiDiXzXeT9wyBgFzEM/R6la8TEly1wvj1HRaUAGbP7ekOk8QuxMpn+Yf8k3Ospvf6THCPpTQ== X-Google-Smtp-Source: AGHT+IFhF4FKNNKQFRSot5x+tw57qkKXLpBOL6on14C9hyIKb4tKGXarEklKMnOxW8yx/fxijdWk X-Received: by 2002:a17:90a:c585:b0:2a0:7850:a4d2 with SMTP id l5-20020a17090ac58500b002a07850a4d2mr458337pjt.49.1711347298980; Sun, 24 Mar 2024 23:14:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711347298; cv=pass; d=google.com; s=arc-20160816; b=YCSYV1H/5TQcb0eZD97ZO7AYugsh9uuWZfKEYoeSaEwwAzhOcobLYUDoGeUY9j/ARj Gs2ZIGAzHhDxHOtXIebn/HF4eB3YO81SnL062I0W8ujBAHgBfde/+qT15bTqshvecVHp INzcRzc97Jfz/hB1ydibsn4X58sle/bLjlBrtcIaWYZiVYOq0vYVPSuXbtHy8tINOHys JyDerUcOEGqp+YZETby/UQ/zDeuzbkh+shH1T0l8Ate4z6NZrbVgxlXyCwxc5qO4Gmv6 xIhQUJp12Ae/0iBV50G2u5qTTM3AGiY5+kpPrsULnXLUj028hULaRqnrydDIjVCL8ygm qVoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ZRwYtTjM5csIl2xJz7IPTQX7scqELP08Hk1HHaoN3Do=; fh=HK0qPJ9R2ueVT4pMTY6jhqPt2yF8q2COhKz3ZvqpJCU=; b=e1dlYHUvkoLdFQ3unUs+79/hUh8ODXnx+ns9he7+QCzvaClzg/nWHBh4k8u1/YzDY1 0SxKn7Y5VYk11RWELXrpzFdrjUXCwv9CGiy6CPJHU/TtZWGnqYFo4XKPhaM0jKL2/amj Jr6qibbKL50ijwLfiLDLAXYVf7SXaqOH2T4j2Gjo2eVGhKvkZPXwG6waV21ojvYO8+Cu B3/+igjCWf5sK2nEtTj111CGSWAFL41PjwXgHKmfLChGWWEJd8xBpYtqEl14fHEO1pWG dZ+LMuvJw84H2m/XpSl7VhUn+8vzAg1FQwOtKkZ9rIwgnsBYBQR+WNJBJ42uZZOBpENF 4EWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Q9P/0/6w"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t20-20020a17090b019400b0029c43c3b2fdsi6946758pjs.77.2024.03.24.23.14.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 23:14:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-114527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Q9P/0/6w"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3D7A2291709 for ; Mon, 25 Mar 2024 06:14:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8EC728FED8; Sun, 24 Mar 2024 23:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q9P/0/6w" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DE2215B54B; Sun, 24 Mar 2024 23:16:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322161; cv=none; b=KBre6xeOgIpK1XSCHNfADa05X4oyZxIMQdkhS7nlYNpXcviFJpczDrxvEgjxocnbYBbFG+rUNHrwKkXBQHMKj+SWV6wfGXkWWaGv5+OH4oZuO10JReAE/8TLeO9O/NIhKb4PAzmctRlUrM1I3o615dLfNrU9m5L4V3yDZvPD59g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322161; c=relaxed/simple; bh=8KG5Kv9xE8+BSzUzijXLHGU0DSDjDPk4VPFVL8rFUuk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YrsCYPtLRFilVxXkroLSleKZ+SUJ9Jwr+XMy2LIpe76KsjXFFjDmQ9t54eZgI/dg49IRDjAQZlXssiGw2v04OewyHwoywN3td3uIyioaMv6b+U0ZD3x72JhscYcfJn5uZEfJlXwlgE7Z3lKOYhacgrywq/Jx4YrDj5mJj0g3oZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q9P/0/6w; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0BF3C43394; Sun, 24 Mar 2024 23:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322161; bh=8KG5Kv9xE8+BSzUzijXLHGU0DSDjDPk4VPFVL8rFUuk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q9P/0/6wwhrj7QPYP100FqNnsnE7LS5A5htXRnpgonGZ9agymHxkX8oWeO6M2MUS6 w5691TzeBKRi0Nzz66owVkZ7mGTTEcxdadktHYvXA++YSswUOEN5E0bI8levmtO7m9 2XkPfxLiYQB7KNwjkQvIADInUV1pn0Lz3MPU2dV4d3zTqRxZnSTiAnzlurLtw2NT65 8KEn+VLepRNCMEoA3pIe8xkAgquwF5MwNVP6f2YH5yEsNyTsZgJ8DbUysugkfRxQ3W 3UsSDySPgqvD4ouumPR/JVdPJM4VYGko1Y87aHnCNf7+ZObns1Ez+su+IvtTrjJUQ9 a/86jOQfZ/2ZA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yangtao Li , Thierry Reding , Sasha Levin Subject: [PATCH 6.1 239/451] drm/tegra: hdmi: Convert to devm_platform_ioremap_resource() Date: Sun, 24 Mar 2024 19:08:35 -0400 Message-ID: <20240324231207.1351418-240-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Yangtao Li [ Upstream commit faae5646c13f4697fd2ba29b10e38f9be5aa890a ] Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Thierry Reding Link: https://patchwork.freedesktop.org/patch/msgid/20230710032355.72914-5-frank.li@vivo.com Stable-dep-of: 643ae131b859 ("drm/tegra: hdmi: Fix some error handling paths in tegra_hdmi_probe()") Signed-off-by: Sasha Levin --- drivers/gpu/drm/tegra/hdmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index bf240767dad9f..f83d9041327f0 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c @@ -1776,7 +1776,6 @@ static irqreturn_t tegra_hdmi_irq(int irq, void *data) static int tegra_hdmi_probe(struct platform_device *pdev) { struct tegra_hdmi *hdmi; - struct resource *regs; int err; hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); @@ -1838,8 +1837,7 @@ static int tegra_hdmi_probe(struct platform_device *pdev) if (err < 0) return err; - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hdmi->regs = devm_ioremap_resource(&pdev->dev, regs); + hdmi->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(hdmi->regs)) return PTR_ERR(hdmi->regs); -- 2.43.0