summaryrefslogtreecommitdiff
path: root/drivers/staging/csr/io.c
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2012-09-01 09:06:10 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-04 21:33:52 (GMT)
commit34f86d06f07cdf87598daa1588a08110047c0b2f (patch)
treeb30ec5e1946790090e3124588e102df4e798c129 /drivers/staging/csr/io.c
parent4febd649bbaaff71dae4cb7bda5473e92c590e01 (diff)
downloadlinux-fsl-qoriq-34f86d06f07cdf87598daa1588a08110047c0b2f.tar.xz
staging: csr: Remove all leftover kernel version checks \o/
Signed-off-by: Priit Laes <plaes@plaes.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/csr/io.c')
-rw-r--r--drivers/staging/csr/io.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/staging/csr/io.c b/drivers/staging/csr/io.c
index 4c929b2..caf48e3 100644
--- a/drivers/staging/csr/io.c
+++ b/drivers/staging/csr/io.c
@@ -70,11 +70,7 @@ static int In_use[MAX_UNIFI_DEVS];
* Mutex to prevent UDI clients to open the character device before the priv
* is created and initialised.
*/
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
DEFINE_SEMAPHORE(Unifi_instance_mutex);
-#else
-DECLARE_MUTEX(Unifi_instance_mutex);
-#endif
/*
* When the device is removed, unregister waits on Unifi_cleanup_wq
* until all the UDI clients release the character device.
@@ -177,21 +173,6 @@ uf_register_netdev(unifi_priv_t *priv, int interfaceTag)
/* The device is registed */
interfacePriv->netdev_registered = 1;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
-#ifdef CONFIG_NET_SCHED
- /*
- * IMPORTANT:
- * uf_install_qdisc() holds the network device lock, we can not
- * install the qdisk before the network device is registered.
- */
- r = uf_install_qdisc(priv->netdev[interfaceTag]);
- if (r) {
- unifi_error(priv, "Failed to install qdisc\n");
- return r;
- }
-#endif /* CONFIG_NET_SCHED */
-#endif /* LINUX_VERSION_CODE */
-
#ifdef CSR_SUPPORT_SME
/*
* Register the inet handler; it notifies us for changes in the IP address.