Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1862690ybm; Sun, 31 May 2020 00:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOIJBqiiOburKZKWMywsOGABSMFcv+zO28+vvrvlUtoVlCKFgzPldOSf4BgjfL2DRTOlzx X-Received: by 2002:a17:906:f2d9:: with SMTP id gz25mr15872555ejb.467.1590911007917; Sun, 31 May 2020 00:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590911007; cv=none; d=google.com; s=arc-20160816; b=A/19FNHMmC+xz/betlHyNrZOuKG5oQLmI4YPvhhQIVG7Wo0lmxlz4qsMzAPTDYHJ2t YLFgZLXt3kJ23fsYs9uy4/y3z+hFJHvusF5BSe147eQgDCodo1UJr+tYv6r1j1Xbs9xX 1iXEsYRIFDKdGxTaPQRLlvpOKVOLDivApeGQUZPte6V0UoKHP7uzjqV9sf9vAAkaeBht dyMwCRFF+Sjh1G+gaytOPjLO7DZ5ABAaplcZ7n8NjjBuG+GvlyJcDdIOr7hZ6x/aHvm+ cYuhfo+qxTCD2Gs47RKy+c3Y68eGd1k5HtSBI1TIZoC2vxgrOm0y/SJshadmGkYTLD7Z M+kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=eEUne5es8CTumw8kmWdqX0LBJXKv2+j/JNhQQv06wwA=; b=KHdnmQuQJ2YfuFXvdynHOI1NXkMdWB1kI7dem6BOv9vIteKAoD0mYlAXiCWM82J16t 5M6xE0iTncpgHpbENRpfAnQM9zGg0A2iAGtVIsREZp0DmVkDfddAH0f6u1v1Es8/hLp5 KyVOWY7Y6Yew5Cmze1o2N/2G7rmw6rMD2BaA+f6FTa4W2/V9loEg7nfEPkhkvpq7SFOn sKQA00WW7KAQjzJfyDWJFCRu2YJZDNrHY7jVMIYLsNUWtFMmwgoPp+iHUenYsVy5kaC9 QZFfgAbNK2ZEt5kxHA6MlHhxdNm32wccAylkFGJEEch643RrRwq78efP7FD4vFsmBc73 SnKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si6281960ejq.422.2020.05.31.00.43.04; Sun, 31 May 2020 00:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbgEaHhb (ORCPT + 99 others); Sun, 31 May 2020 03:37:31 -0400 Received: from smtp10.smtpout.orange.fr ([80.12.242.132]:20907 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbgEaHhb (ORCPT ); Sun, 31 May 2020 03:37:31 -0400 Received: from localhost.localdomain ([93.23.14.245]) by mwinf5d45 with ME id lKdN220075HDzGl03KdP5C; Sun, 31 May 2020 09:37:28 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 31 May 2020 09:37:28 +0200 X-ME-IP: 93.23.14.245 From: Christophe JAILLET To: daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, linus.walleij@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] pinctrl: pxa: pxa2xx: Remove 'pxa2xx_pinctrl_exit()' which is unused and broken Date: Sun, 31 May 2020 09:37:16 +0200 Message-Id: <20200531073716.593343-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 6d33ee7a0534 ("pinctrl: pxa: Use devm_pinctrl_register() for pinctrl registration") has turned a 'pinctrl_register()' into 'devm_pinctrl_register()' in 'pxa2xx_pinctrl_init()'. However, the corresponding 'pinctrl_unregister()' call in 'pxa2xx_pinctrl_exit()' has not been removed. This is not an issue, because 'pxa2xx_pinctrl_exit()' is unused. Remove it now to avoid some wondering in the future and save a few LoC. Signed-off-by: Christophe JAILLET --- If some some reason the function should be kept, at least it should be only 'return 0;' --- drivers/pinctrl/pxa/pinctrl-pxa2xx.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/pinctrl/pxa/pinctrl-pxa2xx.c b/drivers/pinctrl/pxa/pinctrl-pxa2xx.c index bddf2c5dd3bf..eab029a21643 100644 --- a/drivers/pinctrl/pxa/pinctrl-pxa2xx.c +++ b/drivers/pinctrl/pxa/pinctrl-pxa2xx.c @@ -425,15 +425,6 @@ int pxa2xx_pinctrl_init(struct platform_device *pdev, } EXPORT_SYMBOL_GPL(pxa2xx_pinctrl_init); -int pxa2xx_pinctrl_exit(struct platform_device *pdev) -{ - struct pxa_pinctrl *pctl = platform_get_drvdata(pdev); - - pinctrl_unregister(pctl->pctl_dev); - return 0; -} -EXPORT_SYMBOL_GPL(pxa2xx_pinctrl_exit); - MODULE_AUTHOR("Robert Jarzmik "); MODULE_DESCRIPTION("Marvell PXA2xx pinctrl driver"); MODULE_LICENSE("GPL v2"); -- 2.25.1