From patchwork Tue Dec 19 17:00:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 181113 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2083025dyi; Tue, 19 Dec 2023 09:07:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IElAq/p8PpoLoyKQEhPAtFUcQUeNTEA72F5/W4cDgyYXE9NyZLPaqByyU+iMyTb44VYGtBL X-Received: by 2002:a50:9f21:0:b0:553:828d:3f21 with SMTP id b30-20020a509f21000000b00553828d3f21mr738446edf.35.1703005621559; Tue, 19 Dec 2023 09:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703005621; cv=none; d=google.com; s=arc-20160816; b=tv99xoHgiHKSan05l5jfC1eXJMk5dFmR4D4wia9yrQ9uiAc31AcuxgL/vYAfJRDK4o Og4qsFx97s0j0VVBd4j7jJqglRZbZP6rg0IbU400Q6qZWCPuxuu3wdhcMw7pDRi4rkOp ggXPm48ytGC7+/ADKwxzMcYSjHTDdxGyxMnnk5trlrIskXEYJJ9wOuiHVRWG8fwvNSKx pR0M4ApuW2wquQY1elaklIxVO/fSDe511BFzToAKEYcoIGU2C869zFD3APXPDRuERYfD sKCuYMvRHJ+v/9MgVRC0ggOqgbJvtJExAUewlI3pAkmzUeG9PKo7dCTDT58Q+OAPYjkI flGQ== ARC-Message-Signature: i=1; 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=+s72CnTe6ZV2IMv3pM/65G6mJvxbtoIjfslzb5tL7Ro=; fh=k7ZhfSDxugAUNAX9PFQjqQnTRGZ+rgCl5CN8/TdzbyU=; b=Ouc9Zs/mK11PPcUyaWX3h993gVYLx6rqE7ETtY8A7ry0uDFvZhGUc/hjKjlUAUaOmK LWX2TUPOVvpkmm50RG4Ppca0d7dnk14mEkt+Qsbep681P/MZhwNmcNawxNRSYkrEX1bO CyjkyB0nlRsq8XFRQDIUliuth7Bep4RQDZ82WMSgKCghYbn9WrEC7XbuborZKdVU6oDB CRao7HfPJt7cLuzMRBWSyKCE3Sqqv1ifFQ2tbG0c0DEu85ufUGLtdoaAyMxbW5QsxqFj NUpq/qYDCyWISj6CVGt196sUfIcYBvyA2yYXCfkCom+ytreV0sdHz38kM2W2JMf2vAO0 lm5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=B4cNKGq4; spf=pass (google.com: domain of linux-kernel+bounces-5634-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5634-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b6-20020a056402350600b0054c943a07c4si11641397edd.394.2023.12.19.09.07.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:07:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5634-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=B4cNKGq4; spf=pass (google.com: domain of linux-kernel+bounces-5634-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5634-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2B6E31F22290 for ; Tue, 19 Dec 2023 17:07:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32ADA3EA87; Tue, 19 Dec 2023 17:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="B4cNKGq4" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96F3238DED; Tue, 19 Dec 2023 17:01:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-40c3ca9472dso55022775e9.2; Tue, 19 Dec 2023 09:01:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703005282; x=1703610082; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+s72CnTe6ZV2IMv3pM/65G6mJvxbtoIjfslzb5tL7Ro=; b=B4cNKGq42qhvQhHz/Moc41Si/KshZlja9rqQUGM/4NLOj4mn5PkduV2wT4Mmv/onlc sU2mCcJ32TQ0cJwZwJaVUMNb9JyEheKVxfyNi6GA36P6SBHKHGX/G215WRA2EBWCJRgZ /XsTdbJja0Ue+QyGj3f4oeWue5oJ6tU7KkbqTT+QzxyKbLVzpj9PNWLpfWb/lGySJ9Ci +T7AIIncghCU/rdz88r0xlVlS/4ilzeNUc91ndWaAtJwRPzFVtnXWT+Q1eO95VXyFjxg zQKf9dpqX+MdEVQTSBnZO7jaPFTzJ9jSH6+f0INKRLRp4OdH8x5WowS0uE44DNUWgM0F ZRlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703005282; x=1703610082; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+s72CnTe6ZV2IMv3pM/65G6mJvxbtoIjfslzb5tL7Ro=; b=gSidN2+t2mzSh7o7r1Nxd6LSb4nnbTsnwsmk+53Qu5lW3FH0L2RiUL8UephLF2bP1F irqDopWNx30FrgLRpImEpR7dUS6VuMoQQQmEnqbKB2qxO8HIc8m2mkPSvnncefoAdbOk nBU5eIGkjMer/22gQJugr8v7jpKduU07DNtziiVDywd7Q4Te60pvCkjEAws4fjUS5BEx e8DuzokhrQmxJNczxwN3chVebhGeGydMK77NxxPvlGMZ7RhH9apVPXN+foZh6G8THbJz w+U3KkIAXVVQCMD49BUjhIgvNQ1xYph+tiPaxulcGg3Y2k0HA94Z3tY8IwVSdPOCQ0TI Hvrg== X-Gm-Message-State: AOJu0YwaZalEKXTEz3TZcZIV0KgdlC8HmaNFfPIh5nnx3A1RniBp1IKg udJhaRpa2CH3+AUc++KRYA== X-Received: by 2002:a05:600c:244:b0:40c:2b4c:623f with SMTP id 4-20020a05600c024400b0040c2b4c623fmr6217351wmj.82.1703005281769; Tue, 19 Dec 2023 09:01:21 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:7ae5:3e:d1c6:a138]) by smtp.gmail.com with ESMTPSA id i7-20020a05600c354700b0040d2805d158sm3225878wmq.48.2023.12.19.09.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:01:21 -0800 (PST) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v3 16/29] drm/rockchip: inno_hdmi: Remove unused drm device pointer Date: Tue, 19 Dec 2023 18:00:46 +0100 Message-ID: <20231219170100.188800-17-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231219170100.188800-1-knaerzche@gmail.com> References: <20231219170100.188800-1-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785730822752309906 X-GMAIL-MSGID: 1785730822752309906 From: Maxime Ripard The drm_dev field in the inno_hdmi struct stores a pointer to the DRM device but is never used anywhere in the driver. Let's remove it. Signed-off-by: Maxime Ripard Tested-by: Alex Bee Signed-off-by: Alex Bee --- changes in v2: - imported patch changes in v3: - added my SoB drivers/gpu/drm/rockchip/inno_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 49367ca24125..51c1a69dfcc0 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -44,7 +44,6 @@ struct inno_hdmi_i2c { struct inno_hdmi { struct device *dev; - struct drm_device *drm_dev; int irq; struct clk *pclk; @@ -757,7 +756,6 @@ static int inno_hdmi_bind(struct device *dev, struct device *master, return -ENOMEM; hdmi->dev = dev; - hdmi->drm_dev = drm; hdmi->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(hdmi->regs))