From patchwork Thu Jul 30 09:28:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 247268 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2237340ilg; Thu, 30 Jul 2020 02:29:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCu/nPnrJykc5r0tgkIYzId4Uy+rlvoArZ8yiCqzL3/cZhkYdLht6T/usmHoyJ9M/NA1Nh X-Received: by 2002:a50:e617:: with SMTP id y23mr1733788edm.47.1596101368455; Thu, 30 Jul 2020 02:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596101368; cv=none; d=google.com; s=arc-20160816; b=DBjuKPaoMNlfbmzS9uvJrhN2WAYZARR+M2bbc+QG+v+yb2d1zcXtZy2YoyTbgzbA4E 1GSdX3hAkA+SymRFzaaAs8rXHvH644d5KQtacufiQRS7EL7Jc1XMc4SsWAPGsyjsU9Pg BsmXs6seV0rkadQK0amuf3pkDd2I0IuIxonfvPAHszBtx/u3dgAMNcN9KZh3SM9a8fF8 RybHvRQZ/6ZKUgUN3d1Cx7VYK8CvAjD3KX5cUXIWllgmyoXXzr5KyU4kh2eJpgJRu5Ji e5y23gh4dHzIHNkg9bgUGTqlnDChzTckw0jxR9ZIsQZGgHm7sHNpZdp1UAJsQ6rieyKV sqzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=O/OhU8tyZdpz9Ywgw0TR1WOivgVJkVWHXi4w6RcHhLo=; b=Lvhax6Hq4hruXPclClclwyPquO8vFVynU24etfdKei72Ixz7OWqh+vyREZ+8jnmEov FOx3BN9KBBVaX2FWXHyW3u4O7Varx07p06TOjqOZYmwksPIAe2N1UW7ROScQ37LdChl3 4bJXu3xMY+Z9at9MItYTb9iq52LZrJADLyPgeJia4dFJF3R0EbZmRfZfB/2MCjqsL7nR EoRt0p8NSK6/mRUm1Bnf3PolBkgN+tfHyHlLe4sWe8zvq4jQkDiQAgzAkZwTeiggNheY w1w1c9coNLK+y4Py0T/8KXjQueEGOr8NMs6QEijGb/FpeX1pze7OomwT7yMyVUikLwYX db+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=jWXpA5p9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id o18si2855572ejg.391.2020.07.30.02.29.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 02:29:28 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=jWXpA5p9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 00E6082666; Thu, 30 Jul 2020 11:29:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=socionext.com 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=nifty.com header.i=@nifty.com header.b="jWXpA5p9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7CAB48267A; Thu, 30 Jul 2020 11:29:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) (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 3FE3882661 for ; Thu, 30 Jul 2020 11:29:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=yamada.masahiro@socionext.com Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id 06U9SFXA003637; Thu, 30 Jul 2020 18:28:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 06U9SFXA003637 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1596101296; bh=O/OhU8tyZdpz9Ywgw0TR1WOivgVJkVWHXi4w6RcHhLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jWXpA5p9geIZy2R4F/fH02g+tE6P8Kg9UYVhljmYnV+oOzO4q/mzxunXFdQgE4H0I UeLGiMqUmvJszRhpKeMPDEJusqcH8UfdWZb8ll1t0aY+HsSBNKdr+TpykQOjWdYzLL gOmBYYnhmLBTHFJFA5YT525f4RjAYvvpIK7i3Vpg9YO8uwQ1k1Qqe57s6T5M9+/qxs Iy5Z0u3s0S001fcjgoNGZ7tUWD91Z9eJrSptc6p/n2rowFzrdfcIbmV84JWOv2Mnwx RpJ8VjlF4CEFfO+IDDeU54160Rso1et7/zZ27HP9oyJzkAwORYgpzwk3C3m5IDKRTe 9P/T5FhWI4gDQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Cc: Masahiro Yamada , Tom Rini Subject: [PATCH 2/5] ARM: uniphier: remove unused uniphier_pin_init() Date: Thu, 30 Jul 2020 18:28:05 +0900 Message-Id: <20200730092808.26521-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200730092808.26521-1-yamada.masahiro@socionext.com> References: <20200730092808.26521-1-yamada.masahiro@socionext.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean This function is unused since commit 862274913f8f ("bus: uniphier-system-bus: move hardware init from board files"). Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile | 1 - arch/arm/mach-uniphier/init.h | 1 - arch/arm/mach-uniphier/pinctrl-glue.c | 30 --------------------------- 3 files changed, 32 deletions(-) delete mode 100644 arch/arm/mach-uniphier/pinctrl-glue.c -- 2.17.1 diff --git a/arch/arm/mach-uniphier/Makefile b/arch/arm/mach-uniphier/Makefile index 38b6d904f466..d333b7091d4b 100644 --- a/arch/arm/mach-uniphier/Makefile +++ b/arch/arm/mach-uniphier/Makefile @@ -20,7 +20,6 @@ obj-y += reset.o endif obj-$(CONFIG_MICRO_SUPPORT_CARD) += micro-support-card.o -obj-y += pinctrl-glue.o obj-$(CONFIG_MMC) += mmc-first-dev.o obj-y += fdt-fixup.o diff --git a/arch/arm/mach-uniphier/init.h b/arch/arm/mach-uniphier/init.h index dd978c020804..535c06343d81 100644 --- a/arch/arm/mach-uniphier/init.h +++ b/arch/arm/mach-uniphier/init.h @@ -73,7 +73,6 @@ void uniphier_pxs3_clk_init(void); unsigned int uniphier_boot_device_raw(void); int uniphier_have_internal_stm(void); int uniphier_boot_from_backend(void); -int uniphier_pin_init(const char *pinconfig_name); #ifdef CONFIG_ARM64 void uniphier_mem_map_init(unsigned long dram_base, unsigned long dram_size); diff --git a/arch/arm/mach-uniphier/pinctrl-glue.c b/arch/arm/mach-uniphier/pinctrl-glue.c deleted file mode 100644 index 2e0726469595..000000000000 --- a/arch/arm/mach-uniphier/pinctrl-glue.c +++ /dev/null @@ -1,30 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright (C) 2016 Socionext Inc. - * Author: Masahiro Yamada - */ - -#include -#include -#include - -#include "init.h" - -int uniphier_pin_init(const char *pinconfig_name) -{ - struct udevice *pctldev, *config; - int ret; - - ret = uclass_first_device(UCLASS_PINCTRL, &pctldev); - if (ret) - return ret; - - device_foreach_child(config, pctldev) { - if (strcmp(config->name, pinconfig_name)) - continue; - - return pinctrl_generic_set_state(pctldev, config); - } - - return -ENODEV; -}