aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-08-11 08:50:41 -0600
committerHeiko Schocher <hs@denx.de>2024-08-13 06:14:44 +0200
commitb76f37ce634456d46df73817738b3655efe49409 (patch)
treedb07bd98a324c91c5eed7f18f98e00d076722b5e /arch/mips
parent56ec7a69d8ec5bc29c1834685bf84d09dd5da43e (diff)
downloadu-boot-b76f37ce634456d46df73817738b3655efe49409.tar.gz
octeon: Drop OCTEON_I2C_FDT dead code
This option is not defined by any board, so drop the code. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/mach-octeon/octeon_fdt.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/mips/mach-octeon/octeon_fdt.c b/arch/mips/mach-octeon/octeon_fdt.c
index c74fe9d9fb8..15ce292be95 100644
--- a/arch/mips/mach-octeon/octeon_fdt.c
+++ b/arch/mips/mach-octeon/octeon_fdt.c
@@ -687,13 +687,6 @@ int octeon_fdt_i2c_get_bus(const void *fdt, int node_offset)
while (node_offset > 0 &&
!(found = !fdt_node_check_compatible(fdt, node_offset, compat))) {
node_offset = fdt_parent_offset(fdt, node_offset);
-#ifdef CONFIG_OCTEON_I2C_FDT
- bus = i2c_get_bus_num_fdt(node_offset);
- if (bus >= 0) {
- debug("%s: Found bus 0x%x\n", __func__, bus);
- return bus;
- }
-#endif
}
if (!found) {
printf("Error: node %d in device tree is not a child of the I2C bus\n",