]> err.no Git - linux-2.6/commitdiff
[ALSA] usb-audio: remove old compatibility wrappers (1/2)
authorClemens Ladisch <clemens@ladisch.de>
Mon, 26 Sep 2005 08:01:12 +0000 (10:01 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 4 Nov 2005 12:16:37 +0000 (13:16 +0100)
Modules: USB generic driver

Move the usb_pipe_needs_resubmit() compatibility wrapper out of the
kernel tree.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/usbaudio.h
sound/usb/usbmidi.c

index ad9eab211d8fc3970f20baa47d20242812dd8866..b58dc0ca7d38cabfadb88b30399c9eca1b5a2534 100644 (file)
@@ -249,10 +249,6 @@ void snd_usbmidi_disconnect(struct list_head *p);
 #define get_cfg_desc(cfg)      (&(cfg)->desc)
 #endif
 
-#ifndef usb_pipe_needs_resubmit
-#define usb_pipe_needs_resubmit(pipe) 1
-#endif
-
 #ifndef snd_usb_complete_callback
 #define snd_usb_complete_callback(x) (x)
 #endif
index 32be9f99c023a90cedbb4f259b26d4d572f6a39a..369319d672b6a2fb7aa4f92ba115962089616495 100644 (file)
@@ -246,10 +246,8 @@ static void snd_usbmidi_in_urb_complete(struct urb* urb, struct pt_regs *regs)
                }
        }
 
-       if (usb_pipe_needs_resubmit(urb->pipe)) {
-               urb->dev = ep->umidi->chip->dev;
-               snd_usbmidi_submit_urb(urb, GFP_ATOMIC);
-       }
+       urb->dev = ep->umidi->chip->dev;
+       snd_usbmidi_submit_urb(urb, GFP_ATOMIC);
 }
 
 static void snd_usbmidi_out_urb_complete(struct urb* urb, struct pt_regs *regs)