diff options
author | John Klug <john.klug@multitech.com> | 2018-10-25 16:36:57 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-10-25 16:36:57 -0500 |
commit | ff830af02d4010d34a1c37fa16ee2875579b9c22 (patch) | |
tree | e5abfc97d8c0a6350a3253ebf9965e6b381b4b01 | |
parent | 555f2f237166b2ffefa7b7f39dbaeb98be5ddaee (diff) | |
download | mtac-eth-1.1.0.tar.gz mtac-eth-1.1.0.tar.bz2 mtac-eth-1.1.0.zip |
Use mtac_free in mtac_eth_exit1.1.0
-rw-r--r-- | mtac_eth.c | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -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 "MTS Ethernet Accessory Card" #define DRIVER_NAME "mtac-eth" @@ -241,18 +241,7 @@ static int __init mtac_eth_init(void) /* We can only tear down our own device */ static void __exit mtac_eth_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_ETH)) { - if (mtac_port_info[port_index]->setup == ð_setup) { - mtac_port_info[port_index]->teardown(port_index+1); - kfree(mtac_port_info[port_index]); - } - } - } + mtac_free(PRODUCT_ID_MTAC_ETH,eth_setup,"eth"); log_info("exiting"); } |