diff options
-rw-r--r-- | drivers/staging/line6/capture.c | 2 | ||||
-rw-r--r-- | drivers/staging/line6/config.h | 10 | ||||
-rw-r--r-- | drivers/staging/line6/driver.c | 6 | ||||
-rw-r--r-- | drivers/staging/line6/midi.c | 2 | ||||
-rw-r--r-- | drivers/staging/line6/playback.c | 2 |
5 files changed, 6 insertions, 16 deletions
diff --git a/drivers/staging/line6/capture.c b/drivers/staging/line6/capture.c index 5dec3bfff04d..96ed08a06b99 100644 --- a/drivers/staging/line6/capture.c +++ b/drivers/staging/line6/capture.c | |||
@@ -136,7 +136,7 @@ void unlink_wait_clear_audio_in_urbs(struct snd_line6_pcm *line6pcm) | |||
136 | /* | 136 | /* |
137 | Callback for completed capture URB. | 137 | Callback for completed capture URB. |
138 | */ | 138 | */ |
139 | static void audio_in_callback(struct urb *urb PT_REGS) | 139 | static void audio_in_callback(struct urb *urb) |
140 | { | 140 | { |
141 | int i, index, length = 0, shutdown = 0; | 141 | int i, index, length = 0, shutdown = 0; |
142 | int frames; | 142 | int frames; |
diff --git a/drivers/staging/line6/config.h b/drivers/staging/line6/config.h index a687dc9b579f..205e697fa90c 100644 --- a/drivers/staging/line6/config.h +++ b/drivers/staging/line6/config.h | |||
@@ -43,16 +43,6 @@ | |||
43 | #define CHECKPOINT printk("line6usb: %s (%s:%d)\n", __FUNCTION__, __FILE__, __LINE__) | 43 | #define CHECKPOINT printk("line6usb: %s (%s:%d)\n", __FUNCTION__, __FILE__, __LINE__) |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | /** | ||
47 | In Linux 2.6.20 and later, the pt_regs is no longer passed to USB callback | ||
48 | functions. | ||
49 | */ | ||
50 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) | ||
51 | #define PT_REGS | ||
52 | #else | ||
53 | #define PT_REGS , struct pt_regs *regs | ||
54 | #endif | ||
55 | |||
56 | #if DO_DEBUG_MESSAGES | 46 | #if DO_DEBUG_MESSAGES |
57 | #define DEBUG_MESSAGES(x) (x) | 47 | #define DEBUG_MESSAGES(x) (x) |
58 | #else | 48 | #else |
diff --git a/drivers/staging/line6/driver.c b/drivers/staging/line6/driver.c index a5a1c07e6a01..7c20783b3e58 100644 --- a/drivers/staging/line6/driver.c +++ b/drivers/staging/line6/driver.c | |||
@@ -94,7 +94,7 @@ struct message | |||
94 | /* | 94 | /* |
95 | Forward declarations. | 95 | Forward declarations. |
96 | */ | 96 | */ |
97 | static void line6_data_received(struct urb *urb PT_REGS); | 97 | static void line6_data_received(struct urb *urb); |
98 | static int line6_send_raw_message_async_part(struct message *msg, struct urb *urb); | 98 | static int line6_send_raw_message_async_part(struct message *msg, struct urb *urb); |
99 | 99 | ||
100 | 100 | ||
@@ -202,7 +202,7 @@ int line6_send_raw_message(struct usb_line6 *line6, const char *buffer, int size | |||
202 | /* | 202 | /* |
203 | Notification of completion of asynchronous request transmission. | 203 | Notification of completion of asynchronous request transmission. |
204 | */ | 204 | */ |
205 | static void line6_async_request_sent(struct urb *urb PT_REGS) | 205 | static void line6_async_request_sent(struct urb *urb) |
206 | { | 206 | { |
207 | struct message *msg = (struct message *)urb->context; | 207 | struct message *msg = (struct message *)urb->context; |
208 | 208 | ||
@@ -315,7 +315,7 @@ char *line6_alloc_sysex_buffer(struct usb_line6 *line6, int code1, int code2, in | |||
315 | /* | 315 | /* |
316 | Notification of data received from the Line6 device. | 316 | Notification of data received from the Line6 device. |
317 | */ | 317 | */ |
318 | static void line6_data_received(struct urb *urb PT_REGS) | 318 | static void line6_data_received(struct urb *urb) |
319 | { | 319 | { |
320 | struct usb_line6 *line6 = (struct usb_line6 *)urb->context; | 320 | struct usb_line6 *line6 = (struct usb_line6 *)urb->context; |
321 | struct MidiBuffer *mb = &line6->line6midi->midibuf_in; | 321 | struct MidiBuffer *mb = &line6->line6midi->midibuf_in; |
diff --git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c index b6fea1670f94..f72681963e44 100644 --- a/drivers/staging/line6/midi.c +++ b/drivers/staging/line6/midi.c | |||
@@ -87,7 +87,7 @@ static void line6_midi_transmit(struct snd_rawmidi_substream *substream) | |||
87 | /* | 87 | /* |
88 | Notification of completion of MIDI transmission. | 88 | Notification of completion of MIDI transmission. |
89 | */ | 89 | */ |
90 | static void midi_sent(struct urb *urb PT_REGS) | 90 | static void midi_sent(struct urb *urb) |
91 | { | 91 | { |
92 | unsigned long flags; | 92 | unsigned long flags; |
93 | int status; | 93 | int status; |
diff --git a/drivers/staging/line6/playback.c b/drivers/staging/line6/playback.c index f6503c23bd08..4e36f250d4be 100644 --- a/drivers/staging/line6/playback.c +++ b/drivers/staging/line6/playback.c | |||
@@ -221,7 +221,7 @@ void unlink_wait_clear_audio_out_urbs(struct snd_line6_pcm *line6pcm) | |||
221 | /* | 221 | /* |
222 | Callback for completed playback URB. | 222 | Callback for completed playback URB. |
223 | */ | 223 | */ |
224 | static void audio_out_callback(struct urb *urb PT_REGS) | 224 | static void audio_out_callback(struct urb *urb) |
225 | { | 225 | { |
226 | int i, index, length = 0, shutdown = 0; | 226 | int i, index, length = 0, shutdown = 0; |
227 | unsigned long flags; | 227 | unsigned long flags; |