summaryrefslogtreecommitdiff
path: root/io-module/mtr2d2.c
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2014-10-08 11:24:40 -0500
committerMike Fiore <mfiore@multitech.com>2014-10-08 11:24:40 -0500
commitddb473a94114a6de7f0ec0dbd3a90021b2baa87f (patch)
treeffdb8e1f1ba7f9628e3ffc5d9c207f744a8b020f /io-module/mtr2d2.c
parent8be9080418b18941129e56b44f7c5218a5a73932 (diff)
downloadmts-io-ddb473a94114a6de7f0ec0dbd3a90021b2baa87f.tar.gz
mts-io-ddb473a94114a6de7f0ec0dbd3a90021b2baa87f.tar.bz2
mts-io-ddb473a94114a6de7f0ec0dbd3a90021b2baa87f.zip
mts-io: improve cleanup on module unload or init error
remove unused attributes remove unused files clean up mtr2d2.c
Diffstat (limited to 'io-module/mtr2d2.c')
-rw-r--r--io-module/mtr2d2.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/io-module/mtr2d2.c b/io-module/mtr2d2.c
index 428d71c..7e44881 100644
--- a/io-module/mtr2d2.c
+++ b/io-module/mtr2d2.c
@@ -265,9 +265,6 @@ static struct gpio_pin gpio_pins_mtr2d2_0_0[] = {
{ },
};
-static int mtr2d2_platform_attributes_max_size = 64; // including NULL at end
-static int mtr2d2_platform_attributes_size = 21;
-
static struct attribute *mtr2d2_platform_attributes[] = {
&dev_attr_vendor_id.attr,
&dev_attr_product_id.attr,
@@ -291,52 +288,6 @@ static struct attribute *mtr2d2_platform_attributes[] = {
&dev_attr_led_c_gpio.attr,
&dev_attr_led_d_gpio.attr,
&dev_attr_led_e_gpio.attr,
-
- /* extra space for the accessory card attributes */
- NULL, // index 20
- NULL, // index 21
- NULL, // index 22
- NULL, // index 23
- NULL, // index 24
- NULL, // index 25
- NULL, // index 26
- NULL, // index 27
- NULL, // index 28
- NULL, // index 29
- NULL, // index 30
- NULL, // index 31
- NULL, // index 32
- NULL, // index 33
- NULL, // index 34
- NULL, // index 35
- NULL, // index 36
- NULL, // index 37
- NULL, // index 38
- NULL, // index 39
- NULL, // index 40
- NULL, // index 41
- NULL, // index 42
- NULL, // index 43
- NULL, // index 44
- NULL, // index 45
- NULL, // index 46
- NULL, // index 47
- NULL, // index 48
- NULL, // index 49
- NULL, // index 50
- NULL, // index 51
- NULL, // index 52
- NULL, // index 53
- NULL, // index 54
- NULL, // index 55
- NULL, // index 56
- NULL, // index 57
- NULL, // index 58
- NULL, // index 59
- NULL, // index 60
- NULL, // index 61
- NULL, // index 62
- NULL, // index 63
NULL,
};