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>
/*
Callback for completed capture URB.
*/
-static void audio_in_callback(struct urb *urb PT_REGS)
+static void audio_in_callback(struct urb *urb)
{
int i, index, length = 0, shutdown = 0;
int frames;
#define CHECKPOINT printk("line6usb: %s (%s:%d)\n", __FUNCTION__, __FILE__, __LINE__)
#endif
-/**
- In Linux 2.6.20 and later, the pt_regs is no longer passed to USB callback
- functions.
-*/
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
-#define PT_REGS
-#else
-#define PT_REGS , struct pt_regs *regs
-#endif
-
#if DO_DEBUG_MESSAGES
#define DEBUG_MESSAGES(x) (x)
#else
/*
Forward declarations.
*/
-static void line6_data_received(struct urb *urb PT_REGS);
+static void line6_data_received(struct urb *urb);
static int line6_send_raw_message_async_part(struct message *msg, struct urb *urb);
/*
Notification of completion of asynchronous request transmission.
*/
-static void line6_async_request_sent(struct urb *urb PT_REGS)
+static void line6_async_request_sent(struct urb *urb)
{
struct message *msg = (struct message *)urb->context;
/*
Notification of data received from the Line6 device.
*/
-static void line6_data_received(struct urb *urb PT_REGS)
+static void line6_data_received(struct urb *urb)
{
struct usb_line6 *line6 = (struct usb_line6 *)urb->context;
struct MidiBuffer *mb = &line6->line6midi->midibuf_in;
/*
Notification of completion of MIDI transmission.
*/
-static void midi_sent(struct urb *urb PT_REGS)
+static void midi_sent(struct urb *urb)
{
unsigned long flags;
int status;
/*
Callback for completed playback URB.
*/
-static void audio_out_callback(struct urb *urb PT_REGS)
+static void audio_out_callback(struct urb *urb)
{
int i, index, length = 0, shutdown = 0;
unsigned long flags;