Staging: line6: remove KERNEL_VERSION checks
authorGreg Kroah-Hartman <gregkh@suse.de>
Sat, 28 Feb 2009 04:32:10 +0000 (20:32 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:25 +0000 (14:54 -0700)
As the code is in the kernel tree, it's no longer needed.

Cc: Markus Grabner <grabner@icg.tugraz.at>
Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/line6/capture.c
drivers/staging/line6/config.h
drivers/staging/line6/driver.c
drivers/staging/line6/driver.h
drivers/staging/line6/pcm.c
drivers/staging/line6/playback.c
drivers/staging/line6/pod.c
drivers/staging/line6/usbdefs.h

index 96ed08a06b998c48b5753366cc34e78b18df3175..6660c0b4cc5c094e966cac3bed29232e1447ba1d 100644 (file)
@@ -88,9 +88,6 @@ static void unlink_audio_in_urbs(struct snd_line6_pcm *line6pcm)
                if(test_bit(i, &line6pcm->active_urb_in)) {
                        if(!test_and_set_bit(i, &line6pcm->unlink_urb_in)) {
                                struct urb *u = line6pcm->urb_audio_in[i];
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 14)
-                               u->transfer_flags |= URB_ASYNC_UNLINK;
-#endif
                                usb_unlink_urb(u);
                        }
                }
index 205e697fa90c20e04335d68f76af247b4d5718c8..8cefdbac9d22164eb6ececb4adf8006a77625cef 100644 (file)
 #define CONFIG_H
 
 
-#include <linux/version.h>
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
-#include <linux/config.h>
-#endif
-
 #ifdef CONFIG_USB_DEBUG
 #define DEBUG 1
 #endif
index 7c20783b3e583edab68137ed2e74c3e87c6ad6bb..cf01abcc46763f97c68a5ac2b612df27c907361b 100644 (file)
@@ -1000,9 +1000,6 @@ static void line6_disconnect(struct usb_interface *interface)
 }
 
 static struct usb_driver line6_driver = {
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16)
-       .owner = THIS_MODULE,
-#endif
        .name = DRIVER_NAME,
        .probe = line6_probe,
        .disconnect = line6_disconnect,
index dc081b6cd91377413b6f27034b7a8adc04913a07..20966534259d5119bcf0bb40ab8e5404884660da 100644 (file)
 #include <linux/spinlock.h>
 #include <linux/usb.h>
 #include <linux/wait.h>
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
-#include <sound/driver.h>
-#endif
-
 #include <sound/core.h>
 
 #include "midi.h"
 
-
 #define DRIVER_NAME "line6usb"
 
 #define LINE6_TIMEOUT 1
index 725184b2f30856b6d984b8638cea398d4b614a10..489d398e65bbee9062f180384263e0128802683e 100644 (file)
@@ -26,9 +26,6 @@
 int snd_line6_trigger(struct snd_pcm_substream *substream, int cmd)
 {
        struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
-       struct list_head *pos;
-#endif
        struct snd_pcm_substream *s;
        int err;
        unsigned long flags;
@@ -36,12 +33,7 @@ int snd_line6_trigger(struct snd_pcm_substream *substream, int cmd)
        spin_lock_irqsave(&line6pcm->lock_trigger, flags);
        clear_bit(BIT_PREPARED, &line6pcm->flags);
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
-       snd_pcm_group_for_each(pos, substream) {
-               s = snd_pcm_group_substream_entry(pos);
-#else
        snd_pcm_group_for_each_entry(s, substream) {
-#endif
                switch(s->stream) {
                case SNDRV_PCM_STREAM_PLAYBACK:
                        err = snd_line6_playback_trigger(s, cmd);
index 4e36f250d4be26237f794b995f8ce23bbec663ea..c86e89c59f0792a041f17eafbfb936f1f6bc7de8 100644 (file)
@@ -173,9 +173,6 @@ static void unlink_audio_out_urbs(struct snd_line6_pcm *line6pcm)
                if(test_bit(i, &line6pcm->active_urb_out)) {
                        if(!test_and_set_bit(i, &line6pcm->unlink_urb_out)) {
                                struct urb *u = line6pcm->urb_audio_out[i];
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 14)
-                               u->transfer_flags |= URB_ASYNC_UNLINK;
-#endif
                                usb_unlink_urb(u);
                        }
                }
index af18087f1ed148dc587c9bab35d54fdaf68cc863..eba804f2b17c8ac0a6c8fee23e302be8b251635a 100644 (file)
@@ -135,15 +135,9 @@ static int pod_version_request_async(struct usb_line6_pod *pod)
        return line6_send_raw_message_async(&pod->line6, pod->buffer_versionreq, sizeof(pod_request_version));
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
 static void pod_create_files_work(struct work_struct *work)
 {
        struct usb_line6_pod *pod = container_of(work, struct usb_line6_pod, create_files_work);
-#else
-static void pod_create_files_work(void *work)
-{
-       struct usb_line6_pod *pod = (struct usb_line6_pod *)work;
-#endif
 
        pod_create_files(pod->firmware_version, pod->line6.properties->device_bit, pod->line6.ifcdev);
 }
@@ -351,11 +345,7 @@ void pod_process_message(struct usb_line6_pod *pod)
 
                                /* Now we know the firmware version, so we schedule a bottom half
                                         handler to create the special files: */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
                                INIT_WORK(&pod->create_files_work, pod_create_files_work);
-#else
-                               INIT_WORK(&pod->create_files_work, pod_create_files_work, pod);
-#endif
                                queue_work(line6_workqueue, &pod->create_files_work);
                        }
                        else
index cbf5d0d62a1fff94a6b0ed3588ce36038bd706df..15dbca757ac41f368dafa224a8798fc8260183f9 100644 (file)
@@ -13,9 +13,6 @@
 #define USBDEFS_H
 
 
-#include <linux/version.h>
-
-
 #define LINE6_VENDOR_ID  0x0e41
 
 #define USB_INTERVALS_PER_SECOND 1000
 #define LINE6_FALLBACK_INTERVAL 10
 #define LINE6_FALLBACK_MAXPACKETSIZE 16
 
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)
-#define usb_interrupt_msg(usb_dev, pipe, data, len, actual_length, timeout) \
-usb_bulk_msg(usb_dev, pipe, data, len, actual_length, timeout)
-#endif
-
-
 #endif