]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
octeon: Drop OCTEON_I2C_FDT dead code
authorSimon Glass <sjg@chromium.org>
Sun, 11 Aug 2024 14:50:41 +0000 (08:50 -0600)
committerHeiko Schocher <hs@denx.de>
Tue, 13 Aug 2024 04:14:44 +0000 (06:14 +0200)
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>
arch/mips/mach-octeon/octeon_fdt.c

index c74fe9d9fb87d160c7869fc7a4b94f561ae2522c..15ce292be95e8af71354719c2de0dabe6cd37cb2 100644 (file)
@@ -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",