From patchwork Mon Jul 8 09:23:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13726324 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 04632C3271E for ; Mon, 8 Jul 2024 09:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=k8jXjhnteyHi/h5d3MyerG7Cq4QitFCBOvq+XfrJHnA=; b=QCwbOIatSfsFnVVW0L//4aspvR Htmz4+ylR5orEkKUt2GzWra++Zz1hFLTxCqunra8Ib/gZvBKIDZi81mIkzDybnowsWTj6YGk+O3If rneBiMBQi/iDYGFqpYRl62x/2Y08nxWNt7yQBfBV07Bp+ZCWQvkbdpd8kBfMBGtOyLCSnmtqZLPLM cTzpjfrLHP83B8yecgpFBWNmphysfkd/9EMVKd79nEd2q5EA2jjT5BCR/1wtES0Y9QlN52kcfbXsI q8GXP8DDFnKqDYeBUTKtvDK/4kmicGFpUfj+9nhInwQh4hBL+evt4BS2XUEP1eSDyiUrsUkPsJyWU +PO5xruw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQkbl-00000003GRL-2UjG; Mon, 08 Jul 2024 09:24:29 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQkbW-00000003GQ5-3bOe for linux-arm-kernel@lists.infradead.org; Mon, 08 Jul 2024 09:24:16 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a77cbb5e987so292909366b.3 for ; Mon, 08 Jul 2024 02:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1720430652; x=1721035452; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=k8jXjhnteyHi/h5d3MyerG7Cq4QitFCBOvq+XfrJHnA=; b=xGtM3cfEAH0nagdYrFeO5rVko5odZ0hk2lYaJAP0E7uBlyI7SrGQX92RucACTVHAl+ 1jalSFcpMJPJfUPjHxN1F3Q7tJlqoKIiBhmOZJ/3bflHoLB8sa3v+sqFZCz0fKWoiyKm orymYau8Z8Qzth+GLWpdrFyGD5Z/KBJjEhumBlzPfICHZTRTotTl0zuLPaqcsQIfXHYP w0D2k/DKl0PrMNmpCHTWWm9nnEPGSbDwor6IfBKlw3/9uMOV0t/8qESviNP4gXIULCkt 6izu83CVd03Xq85tD2FSZvMSb4C91DHDp9PipaDnaFfSv6VEA1hobbZqXpfNgJfmJb+P fcdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720430652; x=1721035452; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k8jXjhnteyHi/h5d3MyerG7Cq4QitFCBOvq+XfrJHnA=; b=pdvPbVPXXc0DkUtlkdT57WlZD8k0QZvP1hBbRHonpOsH3a10uNQu1WkqXyl6UdOLtC /gxSu9k0ncEVKalITsJzsaMOQ53ylGs4ckCIprf8gku+aJ+WbqhFudLeCRrxSwnVrCba wH6IJzKR+awPe4zBdSgwOqOiWCbXAF7gOD3FucaDCU0wfSRCwl+AZV8aN0feuuuYLgB8 Y22S/mjaViCJGq+TxeVLgk6UJold2773j1OGvm7RXUKHZovn2GCikI4eCAe7UBjtZDxv VgiQITXJ0T6rniHvqf4ZjcGRkg3NWVIToNuPhxuL0vhak64X6yFJsiWUezxMSPfS+4S6 QUaA== X-Gm-Message-State: AOJu0YyzIz81gqSNEu8fcfikMA5ebbh0EaCjAWqBxaFcTUPIn+hEfMDS 9Lb7C8pJeweB9mYqE4uxGxHtG6jnwi0hclBUw3IcMu51rm8FPeksIyv6wxlw+8o= X-Google-Smtp-Source: AGHT+IGzUEbRxDQE82ryWfIBKFCzrvMTKxzYXJKyEOdUzpo2Nix4h0N+ywod+RkqmbaGOJzVFJRSyA== X-Received: by 2002:a17:906:2514:b0:a77:cc6f:e77c with SMTP id a640c23a62f3a-a77cc6fed76mr611795066b.58.1720430652153; Mon, 08 Jul 2024 02:24:12 -0700 (PDT) Received: from localhost (p50915e7b.dip0.t-ipconnect.de. [80.145.94.123]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77ec945a86sm151332766b.6.2024.07.08.02.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 02:24:11 -0700 (PDT) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Jason Cooper Cc: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dove: Drop a write-only variable Date: Mon, 8 Jul 2024 11:23:49 +0200 Message-ID: <20240708092352.1358438-2-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1669; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=psnLeUfnNEp1uDAWrItaOw6woZ7q2bBbeA8JGH3os94=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBmi7Aoa7qBHWKSWAcJm/R2s7PXglvhzV01Oxo9v jvL3eq7+LaJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZouwKAAKCRCPgPtYfRL+ TrsGB/4u9ctl9iegk4kkxYLcZDIq7YN5iFoy0Gx7AB6VwnIGnpsbOfv9Okcwh4kfT8rDT86PI6r klVPy+EgRmlSXZzTrGUc1TfHlmusvDVc52Ee1AvtdS1klJvgqRds0gVFdv8PNm/ItERz3xyz6H1 riiT70MKWB2z+LLyAq452zFkZsK+PAVKfJ5snA5BXCed9/GKuWfL9SbK24bIgjK0lHMFuNQzxDy H1j504de1UdeEoO6sWD+CsjnfM/2yKQ/nJf758FTriEr51GKllG+jMB0PuuK6SLj1jHBskZDenz WA3qbnJiyXLT8bBog+xhWcVu9ySFrL5yAmo+ZYZn9ojeP2Z6 X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_022415_013696_114AB58F X-CRM114-Status: GOOD ( 12.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This fixes a W=1 build error: arch/arm/mach-dove/common.c: In function ‘dove_clk_init’: arch/arm/mach-dove/common.c:85:40: error: variable ‘gephy’ set but not used [-Werror=unused-but-set-variable] 85 | struct clk *xor0, *xor1, *ge, *gephy; | ^~~~~ Fixes: 521674718af0 ("ARM: dove: add clock gating control") Signed-off-by: Uwe Kleine-König Reviewed-by: Andrew Lunn --- arch/arm/mach-dove/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233 diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c index 3aea90bbb41a..35e978514591 100644 --- a/arch/arm/mach-dove/common.c +++ b/arch/arm/mach-dove/common.c @@ -82,7 +82,7 @@ static void __init dove_clk_init(void) { struct clk *usb0, *usb1, *sata, *pex0, *pex1, *sdio0, *sdio1; struct clk *nand, *camera, *i2s0, *i2s1, *crypto, *ac97, *pdma; - struct clk *xor0, *xor1, *ge, *gephy; + struct clk *xor0, *xor1, *ge; tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, dove_tclk); @@ -102,7 +102,7 @@ static void __init dove_clk_init(void) pdma = dove_register_gate("pdma", "tclk", CLOCK_GATING_BIT_PDMA); xor0 = dove_register_gate("xor0", "tclk", CLOCK_GATING_BIT_XOR0); xor1 = dove_register_gate("xor1", "tclk", CLOCK_GATING_BIT_XOR1); - gephy = dove_register_gate("gephy", "tclk", CLOCK_GATING_BIT_GIGA_PHY); + dove_register_gate("gephy", "tclk", CLOCK_GATING_BIT_GIGA_PHY); ge = dove_register_gate("ge", "gephy", CLOCK_GATING_BIT_GBE); orion_clkdev_add(NULL, "orion_spi.0", tclk);