From e87ec476597042ce75ec11e82287a5540933291b Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Wed, 29 Oct 2014 15:16:51 -0500 Subject: remove legacy "mtcdp" sysfs link --- io-module/mts_io.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/io-module/mts_io.c b/io-module/mts_io.c index cbf0637..9058096 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -508,7 +508,6 @@ static void cleanup(void) log_info("cleaning up...."); if (mts_io_platform_device) { - sysfs_remove_link(&mts_io_platform_device->dev.parent->kobj, "mtcdp"); platform_device_unregister(mts_io_platform_device); } for (port_index = 0, port = 1; port_index < NUM_AP; port_index++, port++) { @@ -546,16 +545,6 @@ static int __init mts_io_init(void) return ret; } - /* preserve backwards compatibility with old mtcdp platform name */ - ret = sysfs_create_link(&mts_io_platform_device->dev.parent->kobj, - &mts_io_platform_device->dev.kobj, - "mtcdp"); - if (ret) { - log_error("sysfs_create_link failed: %d", ret); - cleanup(); - return ret; - } - if (NUM_AP) { for (port_index = 0; port_index < NUM_AP; port_index++) { port_info[port_index] = NULL; -- cgit v1.2.3