summaryrefslogtreecommitdiff
path: root/io-module/mts-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r--io-module/mts-io.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c
index 59106a4..b8b9c94 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -822,17 +822,13 @@ mts_id_eeprom_load(void)
return -ENODEV;
}
- /* If we are an MTCPM-0.0, the base board sets the radio existance, and we always
- * add the radio-reset, etc */
- if (strncmp(id_eeprom.hw_version,HW_VERSION_MTCPM_0_0,sizeof HW_VERSION_MTCPM_0_0) != 0) {
- if (id_eeprom.eeprom_layout_version == 0) {
- noradio = ! mts_has_radio(id_eeprom.product_id,sizeof id_eeprom.product_id);
- } else {
- has_cellular_capaflag = 1;
- noradio = ! DEVICE_CAPA(id_eeprom.capa, CAPA_CELLULAR);
- }
- log_debug("mts_id_eeprom_load: noradio=%d",noradio);
- }
+ if (id_eeprom.eeprom_layout_version == 0) {
+ noradio = ! mts_has_radio(id_eeprom.product_id,sizeof id_eeprom.product_id);
+ } else {
+ has_cellular_capaflag = 1;
+ noradio = ! DEVICE_CAPA(id_eeprom.capa, CAPA_CELLULAR);
+ }
+ log_debug("mts_id_eeprom_load: noradio=%d",noradio);
if (found_board(HW_VERSION_MTCAP_0_0,MTCAP_0_0,&hw_version_str,&mts_hw_version) ||
found_board(HW_VERSION_MTCAP_0_1,MTCAP_0_1,&hw_version_str,&mts_hw_version) ||