summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-10-25 16:46:57 -0500
committerJohn Klug <john.klug@multitech.com>2018-10-25 16:46:57 -0500
commit369f523e5ace1e56edbc6082e3d725ab5568bbc5 (patch)
tree11eb1d2ce5534cf027426115a9d82da624e7cd16
parent77a9b455375b15279928c57ae08a845e18a87bb4 (diff)
downloadmtac-pulse-369f523e5ace1e56edbc6082e3d725ab5568bbc5.tar.gz
mtac-pulse-369f523e5ace1e56edbc6082e3d725ab5568bbc5.tar.bz2
mtac-pulse-369f523e5ace1e56edbc6082e3d725ab5568bbc5.zip
Use mtac_free in mtac_pulse_exit1.1.0
-rw-r--r--mtac_pulse.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/mtac_pulse.c b/mtac_pulse.c
index 547cd02..9b5443a 100644
--- a/mtac_pulse.c
+++ b/mtac_pulse.c
@@ -1,4 +1,4 @@
-#define DRIVER_VERSION "v1.0.0"
+#define DRIVER_VERSION "v1.1.0"
#define DRIVER_AUTHOR "John Klug <john.klug@multitech.com>"
#define DRIVER_DESC "MTAC Pulse Accessory Card"
#define DRIVER_NAME "mtac-pulse"
@@ -278,18 +278,7 @@ static int __init mtac_pulse_init(void)
/* We can only tear down our own device */
static void __exit mtac_pulse_exit(void)
{
- int port_index;
- struct mts_ap_eeprom_layout *app;
-
- for (port_index = 0; port_index < NUM_AP; port_index++) {
- app = (struct mts_ap_eeprom_layout *)mts_ap_eeprom[port_index];
- if (app && strstr(app->product_id, PRODUCT_ID_MTAC_XDOT)) {
- if (mtac_port_info[port_index]->setup == &pulse_setup) {
- mtac_port_info[port_index]->teardown(port_index+1);
- kfree(mtac_port_info[port_index]);
- }
- }
- }
+ mtac_free(PRODUCT_ID_MTAC_PULSE,pulse_setup,"pulse");
log_info("exiting");
}