From patchwork Sun Nov 26 10:56:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 169860 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2405487vqx; Sun, 26 Nov 2023 02:57:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAkYaUKOXc3a/VpyVXFDIYzrDuN/BFF4b8ilPSPpSGJr9N/gE9z0T4uFx8bZafITpRjkVe X-Received: by 2002:a17:902:d489:b0:1c7:495c:87e0 with SMTP id c9-20020a170902d48900b001c7495c87e0mr10933713plg.37.1700996226752; Sun, 26 Nov 2023 02:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700996226; cv=none; d=google.com; s=arc-20160816; b=Bq33+WWWv741fbzjMO10QuQYJUMe38i9KxU6du7TjE2fW+K6/kg98XGAy/Vzz6K7QN olPfH1bnjtiAu8Q/VB2dYm1uZoz50F3U6ZxrX2uNEEmLYQqB6N4uKHjbQ0a4FjmmC1qw 4AMt3e4/Zj4GBzkgJh4yyTfZmTKL9IK1rlpr3EZ08c/ZjZbmPMYh09/0d1HR5tEN0UsV ChsPaJl2N5ahCji2BCXKE+LjCL/yhbJiCMZsJhpijx+m8gl7EXQN6pDJ47oejpJ1hMNQ nC6qqnK50z5FPFUShBG3azTB52wz0bBe3QG2J/TdrAcDnFwelHT0blMczD3TKRGcsM5H U5Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=Ea1jLeAmnQSy9N/+din3DyjLsbvTIXpsAIcN3X7QL+4=; fh=A5txN680DUrn+7vP1vJQ1x7h0qg5/DBhgY7UdU6iTTY=; b=hfaTWcdL2G0f+M6ZaVqEIAmhdSvE9q6uFXoBBTaATB9eBpilomf32Zo8pPhFciFFIO /i7CHibREYRIMB5a8STKnNlFU/nrXx3rI4yr2vAamHMWehQ156bxLqzWmtiWbQO1y7nX iDI2L/vNMzk0fLL6gxW3Fcy5fn6sdCiGc7S6QI5JNRl4QorhY5LCNLbrOo6ipfw6XyVL 5E/AF4fyvVrOxVj2HNr9/XDo/5bzJmxQZaA9oqqBGW4NXVFjJkv1V49FMtZnDdqBBnQO 846Qsqdd0h+D6sMmRbJIxqyhnZd8N8hByFQ4TEX49sJ+ETCQGkbGvH+UV4qaW7AGlsTb NDZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=njbt1USn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id i1-20020a17090332c100b001cfc16a141bsi1761681plr.292.2023.11.26.02.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 02:57:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=njbt1USn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D8DDA80C4D94; Sun, 26 Nov 2023 02:57:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229786AbjKZK4x (ORCPT + 99 others); Sun, 26 Nov 2023 05:56:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjKZK4v (ORCPT ); Sun, 26 Nov 2023 05:56:51 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D860EDE for ; Sun, 26 Nov 2023 02:56:57 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a03a9009572so445186966b.3 for ; Sun, 26 Nov 2023 02:56:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700996216; x=1701601016; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=Ea1jLeAmnQSy9N/+din3DyjLsbvTIXpsAIcN3X7QL+4=; b=njbt1USnhnvjDjHCQUSIY04J9Z/CuapK+l6mL4QDPaCWZbSDDU05KrhQv0te4MBfJ1 LobvaWn4rfKlyWpJIv2jpkvnA7AXbz9N/ldzqhZtr8V74l7CiT4eEKnnegnMBqFz+cyf nt/hjbEtxd50rI9th8sjNFFLore5MpOhmi15oIQ2yRy4eeyI8UmOz9Zpu24VeiuW4FMw +6Q8A9CRd7Lw1LeHuBTtKk9ygh/MF3DQAePh6Vq7srA1MyU3jqKze89i7fIt4gDqoelr oygUyVmXJC2XGlReRuCKz1AxqJtGZWQMLlSX2AHNyyR2CTmBo7T1DcrM/2vz/YFd2KL6 CuDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700996216; x=1701601016; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ea1jLeAmnQSy9N/+din3DyjLsbvTIXpsAIcN3X7QL+4=; b=uDFYWvO3NuBUw0VkUiNsYRnuYFRcXlRA6ZQZ0Nn1JtY3katlyiFMveFRazpIoThUjW +jG2GGnJeaAtVuMVJA0lycy9N75ezSX/JNUW53UxW90V68GBmrXrsG85alJVEw7wEGDq LueiLtjupMiWG7XI52g1k4TQ6XV5tCLA8Lewfl2NEi+En+T1CNxIASBYpON93hmHCqmw DJGd2UMuMcPfhVk27ZWFYzbi2LoXDlN1GmKv7euJbheU4GvUS8XwqYKiFyXzHhdyMX6e nbGGq0y7FFoJef8FBNHYmTkkyA487vqPiuhR9KtPPoFS9HLugWWV115jvC2ArvqiXswC KvSw== X-Gm-Message-State: AOJu0YwaopIa5oBDtTaPn4en6GwHNq+UQZ6cOj9uSI5gkz5RmtY9USKt EZ+8uROEEmoGVXzlQLIKOrc= X-Received: by 2002:a17:906:4557:b0:9e6:38f2:8439 with SMTP id s23-20020a170906455700b009e638f28439mr6350967ejq.60.1700996215660; Sun, 26 Nov 2023 02:56:55 -0800 (PST) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id q17-20020a170906145100b00a0949d4f66fsm3083431ejc.54.2023.11.26.02.56.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Nov 2023 02:56:55 -0800 (PST) Message-ID: Date: Sun, 26 Nov 2023 11:56:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 From: Johan Jonker Subject: [PATCH v1 3/3] drm/rockchip: inno_hdmi: Remove unused drm device pointer To: hjc@rock-chips.com, heiko@sntech.de Cc: airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, mripard@kernel.org References: <2601b669-c570-f39d-8cf9-bff56c939912@gmail.com> Content-Language: en-US In-Reply-To: <2601b669-c570-f39d-8cf9-bff56c939912@gmail.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 howler.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 (howler.vger.email [0.0.0.0]); Sun, 26 Nov 2023 02:57:03 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783623819522943603 X-GMAIL-MSGID: 1783623819522943603 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 Signed-off-by: Johan Jonker --- drivers/gpu/drm/rockchip/inno_hdmi.c | 2 -- 1 file changed, 2 deletions(-) -- 2.39.2 diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 535cca30c256..ff7fa11dbc61 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -48,7 +48,6 @@ struct inno_hdmi_i2c { struct inno_hdmi { struct device *dev; - struct drm_device *drm_dev; int irq; struct clk *pclk; @@ -821,7 +820,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))