diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-27 20:32:10 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:25 -0700 |
commit | 4cb8f302738bd4d1fb5e2b909b735e8826558fbf (patch) | |
tree | 98753cda6471857ac542349e7220a7ea5a64109d /drivers/staging/line6/pod.c | |
parent | 0c7ab1580f82d882478db61467005693b4b4c063 (diff) | |
download | op-kernel-dev-4cb8f302738bd4d1fb5e2b909b735e8826558fbf.zip op-kernel-dev-4cb8f302738bd4d1fb5e2b909b735e8826558fbf.tar.gz |
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.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/line6/pod.c b/drivers/staging/line6/pod.c index af18087..eba804f 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 |