From ffd90552ea0d03ee20d675f6b83f6a73ce730f3e Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Thu, 13 Feb 2014 14:57:32 -0600 Subject: put #define for mts_dc_eeprom declaration --- io-module/mts_io.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/io-module/mts_io.c b/io-module/mts_io.c index c56461e..c8763c4 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -88,7 +88,11 @@ extern uint8_t mts_id_eeprom[512]; static struct mts_id_eeprom_layout id_eeprom; /* daughter card EEPROM */ +#ifdef MTOCGD2 extern uint8_t mts_dc_eeprom[512]; +#else +uint8_t mts_dc_eeprom[512] = {}; +#endif static struct mts_dc_eeprom_layout dc_eeprom; bool daughter_card_capable = false; @@ -3603,6 +3607,12 @@ static int __init mts_io_init(void) int ret; log_info("init: " DRIVER_VERSION); + +#ifdef MTOCGD2 + log_info("MTOCGD2 defined"); +#else + log_info("MTOCGD2 undefined"); +#endif ret = mts_id_eeprom_load(); if (ret) { -- cgit v1.2.3