summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-09-22 18:53:26 +0300
committerTom Rini <trini@konsulko.com>2023-01-12 22:06:16 +0300
commit48b3ecbedf8208845ac5956a3fb8817269fafedd (patch)
tree9a2a90d475abd35c8945bb3af7aa0c14bfc149f7 /common
parent942918f2acd3634dee7813f7b9f801ffd54d9f2e (diff)
downloadu-boot-48b3ecbedf8208845ac5956a3fb8817269fafedd.tar.xz
gpio: Get rid of gpio_hog_probe_all()
The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback of each GPIO hog driver instance after .bind() and thus configure the hogged GPIO accordingly. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c3
-rw-r--r--common/spl/spl.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 42060ee709..3618acad43 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -756,9 +756,6 @@ static init_fnc_t init_sequence_r[] = {
initr_status_led,
#endif
/* PPC has a udelay(20) here dating from 2002. Why? */
-#if defined(CONFIG_GPIO_HOG)
- gpio_hog_probe_all,
-#endif
#ifdef CONFIG_BOARD_LATE_INIT
board_late_init,
#endif
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 4668367b68..a630e79866 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -786,9 +786,6 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
}
}
- if (CONFIG_IS_ENABLED(GPIO_HOG))
- gpio_hog_probe_all();
-
#if CONFIG_IS_ENABLED(BOARD_INIT)
spl_board_init();
#endif