]> err.no Git - linux-2.6/commitdiff
[ALSA] usb-audio - remove superfluous parameter
authorClemens Ladisch <clemens@ladisch.de>
Mon, 25 Apr 2005 08:34:13 +0000 (10:34 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 08:05:14 +0000 (10:05 +0200)
USB generic driver,USB USX2Y
This patch removes the superfluous driver parameter from the
disconnect functions.

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

index a7183c5876b3c93c69d0ed23c7d91c01034c68ee..08c5efcf5be2524200352f1045f4eeffe2b8818e 100644 (file)
@@ -2588,7 +2588,7 @@ static int parse_audio_endpoints(snd_usb_audio_t *chip, int iface_no)
  * disconnect streams
  * called from snd_usb_audio_disconnect()
  */
-static void snd_usb_stream_disconnect(struct list_head *head, struct usb_driver *driver)
+static void snd_usb_stream_disconnect(struct list_head *head)
 {
        int idx;
        snd_usb_stream_t *as;
@@ -3282,11 +3282,11 @@ static void snd_usb_audio_disconnect(struct usb_device *dev, void *ptr)
                snd_card_disconnect(card);
                /* release the pcm resources */
                list_for_each(p, &chip->pcm_list) {
-                       snd_usb_stream_disconnect(p, &usb_audio_driver);
+                       snd_usb_stream_disconnect(p);
                }
                /* release the midi resources */
                list_for_each(p, &chip->midi_list) {
-                       snd_usbmidi_disconnect(p, &usb_audio_driver);
+                       snd_usbmidi_disconnect(p);
                }
                usb_chip[chip->index] = NULL;
                up(&register_mutex);
index eecbf19fcb6fc7ed887b6de6eb82e41923f86c1d..14f7cf7e363cbcf81ff58c1f1428b5095fc3e018 100644 (file)
@@ -223,7 +223,7 @@ int snd_usb_create_mixer(snd_usb_audio_t *chip, int ctrlif);
 int snd_usb_create_midi_interface(snd_usb_audio_t *chip, struct usb_interface *iface, const snd_usb_audio_quirk_t *quirk);
 void snd_usbmidi_input_stop(struct list_head* p);
 void snd_usbmidi_input_start(struct list_head* p);
-void snd_usbmidi_disconnect(struct list_head *p, struct usb_driver *driver);
+void snd_usbmidi_disconnect(struct list_head *p);
 
 /*
  * retrieve usb_interface descriptor from the host interface
index 600d990ddc90e43c8a0d728f514d675a07a27df1..304a13451ec97324040408c1ce2a0bb4e91f79c4 100644 (file)
@@ -912,7 +912,7 @@ static void snd_usbmidi_free(snd_usb_midi_t* umidi)
 /*
  * Unlinks all URBs (must be done before the usb_device is deleted).
  */
-void snd_usbmidi_disconnect(struct list_head* p, struct usb_driver *driver)
+void snd_usbmidi_disconnect(struct list_head* p)
 {
        snd_usb_midi_t* umidi;
        int i;
index 89ee8b7320134fdf97b02a03f9e30457d32099f3..e6e6da1596712633b0383293fd3203a066b37d0b 100644 (file)
@@ -442,7 +442,7 @@ static void usX2Y_usb_disconnect(struct usb_device* device, void* ptr)
                snd_card_disconnect((snd_card_t*)ptr);
                /* release the midi resources */
                list_for_each(p, &usX2Y->chip.midi_list) {
-                       snd_usbmidi_disconnect(p, &snd_usX2Y_usb_driver);
+                       snd_usbmidi_disconnect(p);
                }
                if (usX2Y->us428ctls_sharedmem) 
                        wake_up(&usX2Y->us428ctls_wait_queue_head);