diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-20 08:55:06 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-28 07:20:02 +0100 |
commit | bf115fcf957f080a1766bb785e23980c1440d06e (patch) | |
tree | ff015aad22d6d79a44d6a405a00462700a15854b /sound/usb/line6 | |
parent | ALSA: line6: Don't forget to call driver's destructor at error path (diff) | |
download | linux-bf115fcf957f080a1766bb785e23980c1440d06e.tar.xz linux-bf115fcf957f080a1766bb785e23980c1440d06e.zip |
ALSA: line6/toneport: Fix wrong argument for toneport_has_led()
Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6')
-rw-r--r-- | sound/usb/line6/toneport.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c index fb6d5e1e2ade..9a4f5403569e 100644 --- a/sound/usb/line6/toneport.c +++ b/sound/usb/line6/toneport.c @@ -370,13 +370,11 @@ static void toneport_setup(struct usb_line6_toneport *toneport) static void line6_toneport_disconnect(struct usb_interface *interface) { struct usb_line6_toneport *toneport; - u16 idProduct; toneport = usb_get_intfdata(interface); del_timer_sync(&toneport->timer); - idProduct = le16_to_cpu(toneport->line6.usbdev->descriptor.idProduct); - if (toneport_has_led(idProduct)) { + if (toneport_has_led(toneport->type)) { device_remove_file(&interface->dev, &dev_attr_led_red); device_remove_file(&interface->dev, &dev_attr_led_green); } |