From 5239aa1a5133ff48fc3003bf9ffb119d1659f748 Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 17 Apr 2018 14:59:04 -0500 Subject: Remove GPS CPU GPIO reset and interrupt for MTCDTHPIP --- io-module/mts_io.c | 11 ++--------- 1 file 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; } -- cgit v1.2.3