From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A10BC43334 for ; Mon, 25 Jul 2022 12:10:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4DA0B841A8; Mon, 25 Jul 2022 14:10:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="DOurCfmO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B7EA48419B; Mon, 25 Jul 2022 14:10:26 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 155A784193 for ; Mon, 25 Jul 2022 14:10:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EB0FB60FBF; Mon, 25 Jul 2022 12:10:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36490C341C8; Mon, 25 Jul 2022 12:10:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658751018; bh=FagPq5kRDkSvNlDo5om+dcXJCpb1umcuHv7S7JBscfg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DOurCfmOqTnYEeBBIVW1p6AY10Qkze9JeHlgQQis6KTQKLfXeXnmAJUQBtv6CvnpA dr8L0YLvxAZEGnDB7jF7vABi8EuZ9QBSm4ORnzNmdoFXExMkyrsIpuMxbKdJBWdhKN WkEkWjsRqRBaq6Ut1qF4+Z2Ubjsa+AeZpGSs96YF8U+vl2QQqBtC6ZjmUOEQ7tCRO6 nZwnwH6D117aZS5W8IyGS770fyDGIxtClrIm9AqsYjHWZeFyb80xqMMVDkqlOJrpxa tZDw4zNNv2B4ys0tijKIN3vjoYpvOCHXJY5NNan7O8YFj35CNZ6EhOxLEuSpTkXz4T XyXSVbL1J/L2Q== Received: by pali.im (Postfix) id DE3D117D5; Mon, 25 Jul 2022 14:10:15 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese Cc: Marek Behun , u-boot@lists.denx.de Subject: [PATCH 1/6] arm64: a37xx: pinctrl: Remove unused grp->pins fields Date: Mon, 25 Jul 2022 14:08:58 +0200 Message-Id: <20220725120903.3284-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220725120903.3284-1-pali@kernel.org> References: <20220725120903.3284-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean grp->pins is just filled and never used. Remove it. Signed-off-by: Pali Rohár --- drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index e76ef153e604..610535fa2392 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -65,7 +65,6 @@ DECLARE_GLOBAL_DATA_PTR; * belonging to the group * @npins: Number of pins included in the second optional range * @funcs: A list of pinmux functions that can be selected for this group. - * @pins: List of the pins included in the group */ struct armada_37xx_pin_group { const char *name; @@ -76,7 +75,6 @@ struct armada_37xx_pin_group { unsigned int extra_pin; unsigned int extra_npins; const char *funcs[NB_FUNCS]; - unsigned int *pins; }; struct armada_37xx_pin_data { @@ -354,19 +352,7 @@ static int armada_37xx_fill_group(struct armada_37xx_pinctrl *info) for (n = 0; n < info->ngroups; n++) { struct armada_37xx_pin_group *grp = &info->groups[n]; - int i, j, f; - - grp->pins = devm_kzalloc(info->dev, - (grp->npins + grp->extra_npins) * - sizeof(*grp->pins), GFP_KERNEL); - if (!grp->pins) - return -ENOMEM; - - for (i = 0; i < grp->npins; i++) - grp->pins[i] = grp->start_pin + i; - - for (j = 0; j < grp->extra_npins; j++) - grp->pins[i+j] = grp->extra_pin + j; + int f; for (f = 0; (f < NB_FUNCS) && grp->funcs[f]; f++) { int ret; -- 2.20.1