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-19 08:19:30 -0500 |
commit | b3cfb538d0897de1621ea321a7122fab4cd51051 (patch) | |
tree | ad35c622c298d5703647fa2faf5801cd4d00057a /io-module | |
parent | c5d3d4d2e2b6eb2f1e79c9786802b447028ec951 (diff) | |
download | mts-io-b3cfb538d0897de1621ea321a7122fab4cd51051.tar.gz mts-io-b3cfb538d0897de1621ea321a7122fab4cd51051.tar.bz2 mts-io-b3cfb538d0897de1621ea321a7122fab4cd51051.zip |
Remove GPS CPU GPIO reset and interrupt for MTCDTHPIP2.0.0
Diffstat (limited to 'io-module')
-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; } |