aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/line6/pod.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-02-27 20:32:10 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:25 -0700
commit4cb8f302738bd4d1fb5e2b909b735e8826558fbf (patch)
tree98753cda6471857ac542349e7220a7ea5a64109d /drivers/staging/line6/pod.c
parentStaging: line6: remove PT_REGS (diff)
downloadlinux-dev-4cb8f302738bd4d1fb5e2b909b735e8826558fbf.tar.xz
linux-dev-4cb8f302738bd4d1fb5e2b909b735e8826558fbf.zip
Staging: line6: remove KERNEL_VERSION checks
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>
Diffstat (limited to 'drivers/staging/line6/pod.c')
-rw-r--r--drivers/staging/line6/pod.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/line6/pod.c b/drivers/staging/line6/pod.c
index af18087f1ed1..eba804f2b17c 100644
--- a/drivers/staging/line6/pod.c
+++ b/drivers/staging/line6/pod.c
@@ -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