Staging: line6: remove KERNEL_VERSION checks
[firefly-linux-kernel-4.4.55.git] / drivers / staging / line6 / pod.c
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