From patchwork Thu Dec 7 15:50:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 175259 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4876881vqy; Thu, 7 Dec 2023 07:54:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHG8H4kMqavMAM5guuQfYKqEqDaKFwvHeKZdP4q6GRmjLLaZ80p2x87cd3Zna9MAzNNxosY X-Received: by 2002:a05:6a20:840e:b0:18f:c861:a2e6 with SMTP id c14-20020a056a20840e00b0018fc861a2e6mr3048114pzd.11.1701964482899; Thu, 07 Dec 2023 07:54:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701964482; cv=none; d=google.com; s=arc-20160816; b=cS2fZHj/vIcxZFzbFxwilRBKoEcsJQ7ADXTwcmSN3JgP8k8t3bUmGETV0jlRwifJTL PZO+lFYFc5HdFNNSXE2Lvk/fHkuCnZrJqeRRm5zIr+DGBFSl1zpE6Fy/V+7Nv0tPStc1 l6tGtu0FzRA+NNerWFZdJkgg0hWevbo5XYJ6R3WoAJocpoW3QJwZhKeKNCCvLCEjIfGl bL3FdbbeUoera+AIlHfw4mxLp0Ututzfq4IxaOMO2XX5eOl8FMS48J0W3rSfoEoDKPmH Ues/Pu9G9iKu4zGC+PNGjTTtjRh9jPn6ptO/1yNhu8rybfNP8G41TGL9Rbl+veyJgO9w dyrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=rRn+M1kZ3ThkNGEAI3S5aFVzY4Ukk1RNfm0icaGcPr4=; fh=e6/uyeFf2k7v8JUtB6fPyaAS5iN3eSA1hjtg35V2Rzw=; b=0d2gg9m2HYfvzqIxWAjyTwxOdUexIGdsaWRH9kY9asI6QGu16tI/aIkHUekilL2Ohn etY1KPEPgisq4d+vhjpU+FpvV9M9TeMmxPTAA9RcZXMzKoCLLnshe5zL0Vrwj9+D5WT6 FIeirg6MmdAKLaZj0ycEHIm7tXUUGw0KeO0wT3Fim0w47GOIiG4C96WejLU4HJzipvi/ 4Pew4G4kJaH4210Fish2+XOmhFF0AK0jB7wyMw2XnT1gpCx3Q4hLzgnWyYeELcowSTRd I8LF2hv1OfR8hUaM24+j4Gjs/kTiapk10RkVGasdFCymY99HbhOYK0oQKHfU5i8ZqBJA qqMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SHyNH22f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x37-20020a631725000000b005c606792120si1382546pgl.107.2023.12.07.07.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 07:54:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SHyNH22f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A97778088AA2; Thu, 7 Dec 2023 07:54:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443801AbjLGPyN (ORCPT + 99 others); Thu, 7 Dec 2023 10:54:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443785AbjLGPxy (ORCPT ); Thu, 7 Dec 2023 10:53:54 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD5AF2D4E for ; Thu, 7 Dec 2023 07:51:20 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EF4FC433BD; Thu, 7 Dec 2023 15:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701964279; bh=1We2UZx5ZDbQPKfDfMqOP+mc5xLMdSsl/KcWM2D6+wE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=SHyNH22fXWqD6K2WzHGm1reK1De82pQc69qwhJMSx7w4vrWXRCxnZ//ya/DmJPGAU PcuGwVUYVOVt7VEDmNQDQipQKdSJP684ypbtURJqCDkUMx/TVp8fav4YrPR/aYeKUo VlIqK9qnKKHXRkHFLxZy6vJEuFXpS5vIm3jqjMHAuyvp0up6n2Siqu9upgOo+N0fN0 Fwqyuv/ZQC/bMHEZl6f0A404XA/5MennZHMYJR2IlytxuvOW1M5gUkntVT2YOpiYbj 4ffjBsfZ/Mwz4+HUxmuqKhGbYV13Y4Dj5k1ZlW39eeaNAngloVZ0f9PApkRzOOVje/ 0UCnH4oyIotPA== From: Maxime Ripard Date: Thu, 07 Dec 2023 16:50:01 +0100 Subject: [PATCH v5 38/44] drm/rockchip: inno_hdmi: Remove unused drm device pointer MIME-Version: 1.0 Message-Id: <20231207-kms-hdmi-connector-state-v5-38-6538e19d634d@kernel.org> References: <20231207-kms-hdmi-connector-state-v5-0-6538e19d634d@kernel.org> In-Reply-To: <20231207-kms-hdmi-connector-state-v5-0-6538e19d634d@kernel.org> To: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Emma Anholt , Jonathan Corbet , Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Hans Verkuil , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, Maxime Ripard X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=911; i=mripard@kernel.org; h=from:subject:message-id; bh=1We2UZx5ZDbQPKfDfMqOP+mc5xLMdSsl/KcWM2D6+wE=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDKmFL9s8+Dfstffv7H7r3v14If+W1xOkXxy6K77CsefG/ kkF2x6e7yhlYRDjYpAVU2SJETZfEndq1utONr55MHNYmUCGMHBxCsBEGOIZGVby29hO4uf+e8NG Q+LRtfWN+31drrV7nZsl+iL8t4SnmjHD/5j+5qM57WtWC2rf4daOUtnK+e2c5J/rGszCn5Z8W+i 7jBsA X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 07 Dec 2023 07:54:38 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784639109328233324 X-GMAIL-MSGID: 1784639109328233324 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 --- 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 77b530f377c0..0f3ec6eaf270 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -39,7 +39,6 @@ struct inno_hdmi_i2c { struct inno_hdmi { struct device *dev; - struct drm_device *drm_dev; int irq; struct clk *pclk; @@ -648,7 +647,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))