aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-20 04:11:27 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-20 04:11:27 -0500
commit3b15d0d505de859908ba2a6959db59c0aed6910a (patch)
treeaecdc0fa9d6d4935d40e2eaed0ff5c202d4c4da6 /sound/usb
parent86b5f3ec41b5798811ec488fda4865a9781ec8ef (diff)
parent28e237a9b7bc45d048ba7cb683ab348701e099fd (diff)
Merge branch 'topic/timer-cleanup' into for-next
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/midi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/usb/midi.c b/sound/usb/midi.c
index 5bfb695547f8..417ebb11cf48 100644
--- a/sound/usb/midi.c
+++ b/sound/usb/midi.c
@@ -2292,14 +2292,13 @@ int snd_usbmidi_create(struct snd_card *card,
2292 umidi->iface = iface; 2292 umidi->iface = iface;
2293 umidi->quirk = quirk; 2293 umidi->quirk = quirk;
2294 umidi->usb_protocol_ops = &snd_usbmidi_standard_ops; 2294 umidi->usb_protocol_ops = &snd_usbmidi_standard_ops;
2295 init_timer(&umidi->error_timer);
2296 spin_lock_init(&umidi->disc_lock); 2295 spin_lock_init(&umidi->disc_lock);
2297 init_rwsem(&umidi->disc_rwsem); 2296 init_rwsem(&umidi->disc_rwsem);
2298 mutex_init(&umidi->mutex); 2297 mutex_init(&umidi->mutex);
2299 umidi->usb_id = USB_ID(le16_to_cpu(umidi->dev->descriptor.idVendor), 2298 umidi->usb_id = USB_ID(le16_to_cpu(umidi->dev->descriptor.idVendor),
2300 le16_to_cpu(umidi->dev->descriptor.idProduct)); 2299 le16_to_cpu(umidi->dev->descriptor.idProduct));
2301 umidi->error_timer.function = snd_usbmidi_error_timer; 2300 setup_timer(&umidi->error_timer, snd_usbmidi_error_timer,
2302 umidi->error_timer.data = (unsigned long)umidi; 2301 (unsigned long)umidi);
2303 2302
2304 /* detect the endpoint(s) to use */ 2303 /* detect the endpoint(s) to use */
2305 memset(endpoints, 0, sizeof(endpoints)); 2304 memset(endpoints, 0, sizeof(endpoints));