mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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>
This commit is contained in:
parent
eedd0e95d3
commit
bf115fcf95
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user