Skip to content

Commit 3a3eae6

Browse files
crorvicktiwai
authored andcommitted
staging: line6: Filter on Pocket POD interface
The driver only supports interface 1 of the Pocket POD. Use the device table to filter on this. Signed-off-by: Chris Rorvick <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 951dd31 commit 3a3eae6

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

drivers/staging/line6/driver.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static const struct usb_device_id line6_id_table[] = {
3939
{ LINE6_DEVICE(0x4642), .driver_info = LINE6_BASSPODXTLIVE },
4040
{ LINE6_DEVICE(0x4252), .driver_info = LINE6_BASSPODXTPRO },
4141
{ LINE6_DEVICE(0x4750), .driver_info = LINE6_GUITARPORT },
42-
{ LINE6_DEVICE(0x5051), .driver_info = LINE6_POCKETPOD },
42+
{ LINE6_IF_NUM(0x5051, 1), .driver_info = LINE6_POCKETPOD },
4343
{ LINE6_DEVICE(0x5057), .driver_info = LINE6_PODHD300 },
4444
{ LINE6_DEVICE(0x5058), .driver_info = LINE6_PODHD400 },
4545
{ LINE6_IF_NUM(0x414D, 0), .driver_info = LINE6_PODHD500_0 },
@@ -738,15 +738,7 @@ static int line6_probe(struct usb_interface *interface,
738738
break;
739739

740740
case LINE6_POCKETPOD:
741-
switch (interface_number) {
742-
case 0:
743-
return -ENODEV; /* this interface has no endpoints */
744-
case 1:
745-
alternate = 0;
746-
break;
747-
default:
748-
MISSING_CASE;
749-
}
741+
alternate = 0;
750742
break;
751743

752744
case LINE6_PODHD500_0:

0 commit comments

Comments
 (0)