summaryrefslogtreecommitdiff
path: root/io-module
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2014-02-13 14:57:32 -0600
committerMike Fiore <mfiore@multitech.com>2014-02-13 14:57:32 -0600
commitffd90552ea0d03ee20d675f6b83f6a73ce730f3e (patch)
treea0328e37e31334bcd1ac49f14c19d05bb16f033d /io-module
parent86fc87d06bb1c8c1d0dc8c5d846189df70c18395 (diff)
downloadcdp-io-controller-ffd90552ea0d03ee20d675f6b83f6a73ce730f3e.tar.gz
cdp-io-controller-ffd90552ea0d03ee20d675f6b83f6a73ce730f3e.tar.bz2
cdp-io-controller-ffd90552ea0d03ee20d675f6b83f6a73ce730f3e.zip
put #define for mts_dc_eeprom declaration
Diffstat (limited to 'io-module')
-rw-r--r--io-module/mts_io.c10
1 files changed, 10 insertions, 0 deletions
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) {