Commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51

Authored by Jean-Jacques Hiblot
Committed by Heiko Schocher
1 parent cde578ff36

cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT

The implementation of the EEPROM commands does not support the DM I2C API.
Prevent compilation breakage by not enabling it if the non-DM API is not
available (if DM_I2C is used without DM_I2C_COMPAT)

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -445,6 +445,7 @@
445 445  
446 446 config CMD_EEPROM
447 447 bool "eeprom - EEPROM subsystem"
  448 + depends on !DM_I2C || DM_I2C_COMPAT
448 449 help
449 450 (deprecated, needs conversion to driver model)
450 451 Provides commands to read and write EEPROM (Electrically Erasable