summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/pinctrl-glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-uniphier/pinctrl-glue.c')
-rw-r--r--arch/arm/mach-uniphier/pinctrl-glue.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/arm/mach-uniphier/pinctrl-glue.c b/arch/arm/mach-uniphier/pinctrl-glue.c
deleted file mode 100644
index 2e07264695..0000000000
--- 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 <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;
-}