diff options
author | John Klug <john.klug@multitech.com> | 2018-04-17 14:59:04 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-04-17 14:59:04 -0500 |
commit | 5239aa1a5133ff48fc3003bf9ffb119d1659f748 (patch) | |
tree | ad35c622c298d5703647fa2faf5801cd4d00057a | |
parent | 971eb0896a2024211bcef15e64b93138233f7563 (diff) | |
download | mts-io-5239aa1a5133ff48fc3003bf9ffb119d1659f748.tar.gz mts-io-5239aa1a5133ff48fc3003bf9ffb119d1659f748.tar.bz2 mts-io-5239aa1a5133ff48fc3003bf9ffb119d1659f748.zip |
Remove GPS CPU GPIO reset and interrupt for MTCDTHPIP
-rw-r--r-- | io-module/mts_io.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c index 8794785..fba83de 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -959,9 +959,6 @@ mts_id_eeprom_load(void) if(DEVICE_CAPA(id_eeprom.capa, CAPA_WIFI)) { attr_blength += sizeof mtcdt_0_1_wifi_bt_attributes; } - if(DEVICE_CAPA(id_eeprom.capa, CAPA_GPS)) { - attr_blength += sizeof mtcdt_0_1_gnss_attributes; - } if (current_blength+(sizeof(struct attribute *)) != attr_blength) { freelater = all_attrs = kmalloc(attr_blength,GFP_KERNEL); current_count = current_blength/(sizeof (struct attribute *)); @@ -971,12 +968,8 @@ mts_id_eeprom_load(void) memcpy(all_attrs + current_count,mtcdt_0_1_wifi_bt_attributes,sizeof mtcdt_0_1_wifi_bt_attributes); current_count += sizeof mtcdt_0_1_wifi_bt_attributes / (sizeof (struct attribute *)); } - if(DEVICE_CAPA(id_eeprom.capa, CAPA_GPS)) { - log_info("Adding GPS to mts-io driver"); - attr_blength += sizeof mtcdt_0_1_gnss_attributes; - memcpy(all_attrs + current_count,mtcdt_0_1_gnss_attributes,sizeof mtcdt_0_1_gnss_attributes); - current_count += sizeof mtcdt_0_1_gnss_attributes / (sizeof (struct attribute *)); - } + /* MTCDTIPHP does not have GPS reset/interrupt tied to the CPU + * so do not instantiate the GPS attributes */ all_attrs[current_count] = (struct attribute *)NULL; mtcdt_0_1_platform_attribute_group.attrs = all_attrs; } |