]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: uniphier: remove unused uniphier_pin_init()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 30 Jul 2020 09:28:05 +0000 (18:28 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 17 Aug 2020 17:01:14 +0000 (02:01 +0900)
This function is unused since commit 862274913f8f ("bus:
uniphier-system-bus: move hardware init from board files").

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/Makefile
arch/arm/mach-uniphier/init.h
arch/arm/mach-uniphier/pinctrl-glue.c [deleted file]

index 38b6d904f4660fb7d82ded20112e6bd665951e29..d333b7091d4bca0574b54ca96e6509be3e1c7608 100644 (file)
@@ -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
 
index dd978c02080454966f1c507809983cd250c99ff0..535c06343d81eabb47b3c9c2430ff27025741c35 100644 (file)
@@ -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 (file)
index 2e07264..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2016 Socionext Inc.
- *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
- */
-
-#include <linux/errno.h>
-#include <dm.h>
-#include <dm/pinctrl.h>
-
-#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;
-}