summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io-module/mts_io.c11
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;
}