@@ -507,6 +507,11 @@ int line6_probe(struct usb_interface *interface,
int interface_number;
int ret;
+ /* store basic data: */
+ line6->properties = properties;
+ line6->usbdev = usbdev;
+ line6->ifcdev = &interface->dev;
+
ret = snd_card_new(line6->ifcdev,
SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1,
THIS_MODULE, 0, &card);
@@ -548,11 +553,6 @@ int line6_probe(struct usb_interface *interface,
goto error;
}
- /* store basic data: */
- line6->properties = properties;
- line6->usbdev = usbdev;
- line6->ifcdev = &interface->dev;
-
line6_get_interval(line6);
if (properties->capabilities & LINE6_CAP_CONTROL) {