summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-12-02 16:57:53 -0600
committerJohn Klug <john.klug@multitech.com>2016-12-02 16:57:53 -0600
commit3da4f0384f9ee1890fece5ebd9fe9784e1910116 (patch)
tree1e957c0fa3c046f15bf800d7be11ecb91b263238 /io-module/mts_io.c
parent47f3a89441324f4912a7c83bad4f40837bc365b5 (diff)
downloadmts-io-3da4f0384f9ee1890fece5ebd9fe9784e1910116.tar.gz
mts-io-3da4f0384f9ee1890fece5ebd9fe9784e1910116.tar.bz2
mts-io-3da4f0384f9ee1890fece5ebd9fe9784e1910116.zip
Revert bad change
This reverts commit 47f3a89441324f4912a7c83bad4f40837bc365b5.
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 54b1f76..b71eabb 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -653,8 +653,6 @@ static struct kobject *ap_subdirs[NUM_AP];
static struct attribute_group ap_attr_groups[NUM_AP];
/* info for accessory port (contains function pointers for setup and teardown and and useful info) */
static struct ap_info* port_info[NUM_AP];
-static struct kobject *capab;
-static struct attribute_group capab_group;
/* accessory card support */
#include "mtac.c"
@@ -662,7 +660,6 @@ static struct attribute_group capab_group;
#include "mtac_mfser.c"
#include "mtac_eth.c"
#include "mtac_lora.c"
-#include "mts_capab.c"
static bool load_port(int port) {
int port_index = port - 1;
@@ -937,11 +934,7 @@ static void cleanup(void)
kfree(freelater);
freelater = NULL;
}
-
- if(capab_group.attrs)
- kobject_put((struct kobject *)capab_group.attrs);
-
- log_info("JAK done cleaning up....");
+ log_info("done cleaning up....");
}
static int __init mts_io_init(void)
@@ -972,22 +965,6 @@ static int __init mts_io_init(void)
init_ports();
- capab = kobject_create_and_add("capability", &mts_io_platform_device->dev.kobj);
- if (capab == NULL) {
- log_error("kobject_create_and_add for capability directory failed");
- return false;
- }
-
- capab_group.attrs = kzalloc(sizeof(struct attribute*) * CAPA_COUNT, GFP_KERNEL);
- if (! capab_add_attributes(capab_group.attrs)) {
- return false;
- }
-
- if (sysfs_create_group(capab, &capab_group)) {
- log_error("sysfs_create_group failed to create capability group");
- return false;
- }
-
ret = sysfs_create_group(&mts_io_platform_device->dev.kobj, attr_group);
if (ret) {
cleanup();