Commit bf115fcf authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: line6/toneport: Fix wrong argument for toneport_has_led()

Tested-by: default avatarChris Rorvick <>
Signed-off-by: Takashi Iwai's avatarTakashi Iwai <>
parent eedd0e95
......@@ -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);
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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment