These functions are 11 years old and are not actually used by any board,
even though one board (cl-som-imx7) does enable CONFIG_PCA953X

Drop them.

Signed-off-by: Simon Glass <[email protected]>
---

 arch/mips/mach-octeon/octeon_fdt.c | 15 ---------------
 include/i2c.h                      | 18 ------------------
 2 files changed, 33 deletions(-)

diff --git a/arch/mips/mach-octeon/octeon_fdt.c 
b/arch/mips/mach-octeon/octeon_fdt.c
index 15ce292be95..aa5d7d00c0d 100644
--- a/arch/mips/mach-octeon/octeon_fdt.c
+++ b/arch/mips/mach-octeon/octeon_fdt.c
@@ -908,21 +908,6 @@ int octeon_fdt_get_gpio_info(int fdt_node, enum 
octeon_gpio_type *type,
                debug("%s: Found PCA953x compatible GPIO", __func__);
                *type = GPIO_TYPE_PCA953X;
        }
-#endif
-#if defined(CONFIG_PCA953X) || \
-       defined(CONFIG_PCA9555) || defined(CONFIG_PCA9554)
-       if (!i2c_addr || !i2c_bus) {
-               printf("%s: Error: i2c_addr or i2c_bus is NULL\n", __func__);
-               return -1;
-       }
-
-       *i2c_addr = fdtdec_get_int(fdt, fdt_node, "reg", -1);
-       i2c_bus_node = fdt_parent_offset(fdt, fdt_node);
-       if (i2c_bus_node < 0) {
-               printf("%s: Invalid parent\n", __func__);
-               return -1;
-       }
-       *i2c_bus = i2c_get_bus_num_fdt(i2c_bus_node);
 #endif
        return (*type != GPIO_TYPE_UNKNOWN) ? 0 : -1;
 }
diff --git a/include/i2c.h b/include/i2c.h
index 282f3cd700f..f468b52cd7b 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -933,24 +933,6 @@ int i2c_set_bus_speed(unsigned int);
 unsigned int i2c_get_bus_speed(void);
 #endif /* CONFIG_SYS_I2C_LEGACY */
 
-/**
- * Find the I2C bus number by given a FDT I2C node.
- *
- * @param blob  Device tree blbo
- * @param node  FDT I2C node to find
- * Return: the number of I2C bus (zero based), or -1 on error
- */
-int i2c_get_bus_num_fdt(int node);
-
-/**
- * Reset the I2C bus represented by the given a FDT I2C node.
- *
- * @param blob  Device tree blbo
- * @param node  FDT I2C node to find
- * Return: 0 if port was reset, -1 if not found
- */
-int i2c_reset_port_fdt(const void *blob, int node);
-
 #endif /* !CONFIG_DM_I2C */
 
 #endif /* _I2C_H_ */
-- 
2.34.1

Reply via email to