Skip to content

Commit

Permalink
ti: common: board_detect: Setup initial default value for config as well
Browse files Browse the repository at this point in the history
config should have been initialized along with others as defaults.

Signed-off-by: Nishanth Menon <[email protected]>
Reviewed-by: Lokesh Vutla <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
  • Loading branch information
nmenon authored and trini committed Oct 31, 2016
1 parent 28d624b commit 2a78c9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/ti/common/board_detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ int __maybe_unused ti_i2c_eeprom_am_get(int bus_addr, int dev_addr)
ep->name[0] = 0x0;
ep->version[0] = 0x0;
ep->serial[0] = 0x0;
ep->config[0] = 0x0;

rc = ti_i2c_eeprom_get(bus_addr, dev_addr, TI_EEPROM_HEADER_MAGIC,
sizeof(am_ep), (uint8_t *)&am_ep);
Expand Down Expand Up @@ -175,6 +176,7 @@ int __maybe_unused ti_i2c_eeprom_dra7_get(int bus_addr, int dev_addr)
ep->name[0] = 0x0;
ep->version[0] = 0x0;
ep->serial[0] = 0x0;
ep->config[0] = 0x0;
ep->emif1_size = 0;
ep->emif2_size = 0;

Expand Down

0 comments on commit 2a78c9e

Please sign in to comment.