From 9c65971863bb9e356b274b3df08a78ea6fe04edd Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Fri, 2 May 2014 10:39:47 -0500 Subject: [PATCH] wctc4xxp: Remove unused debug ioctl interface. The ioctls for the debug network interface on the tc400b0 has not been used for a long time. It is now gone. This will also allow the sempahore set in the ioctl to be changed into a mutex which provides enhanced debugging checks. Signed-off-by: Shaun Ruffell Signed-off-by: Russ Meyerriecks --- drivers/dahdi/wctc4xxp/base.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 9cf9a1b..09cc06f 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -618,28 +618,6 @@ wctc4xxp_net_waitfor_promiscuous(struct wcdte *wc) } } -static int wctc4xxp_turn_off_booted_led(struct wcdte *wc); -static void wctc4xxp_turn_on_booted_led(struct wcdte *wc); - -static int -wctc4xxp_net_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) -{ - struct wcdte *wc = wcdte_from_netdev(netdev); - switch (cmd) { - case 0x89f0: - down(&wc->chansem); - wctc4xxp_turn_off_booted_led(wc); - break; - case 0x89f1: - wctc4xxp_turn_on_booted_led(wc); - up(&wc->chansem); - break; - default: - return -EOPNOTSUPP; - }; - return 0; -} - #ifdef HAVE_NET_DEVICE_OPS static const struct net_device_ops wctc4xxp_netdev_ops = { #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) @@ -651,7 +629,6 @@ static const struct net_device_ops wctc4xxp_netdev_ops = { .ndo_stop = &wctc4xxp_net_down, .ndo_start_xmit = &wctc4xxp_net_hard_start_xmit, .ndo_get_stats = &wctc4xxp_net_get_stats, - .ndo_do_ioctl = &wctc4xxp_net_ioctl, }; #endif @@ -686,7 +663,6 @@ wctc4xxp_net_register(struct wcdte *wc) netdev->stop = &wctc4xxp_net_down; netdev->hard_start_xmit = &wctc4xxp_net_hard_start_xmit; netdev->get_stats = &wctc4xxp_net_get_stats; - netdev->do_ioctl = &wctc4xxp_net_ioctl; # endif netdev->promiscuity = 0;