ALSA: line6: Drop usb_device sysfs symlink
authorTakashi Iwai <tiwai@suse.de>
Mon, 19 Jan 2015 14:02:30 +0000 (15:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Jan 2015 07:15:53 +0000 (08:15 +0100)
It's non-standard and rather superfluous.

Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/driver.c

index 149c393c73024be21163cc530579b7398e3a3b30..23d504f4b6bceb8181e05a573b908dbb4fcd9314 100644 (file)
@@ -611,11 +611,6 @@ int line6_probe(struct usb_interface *interface,
        if (ret < 0)
                goto err_destruct;
 
-       ret = sysfs_create_link(&interface->dev.kobj, &usbdev->dev.kobj,
-                               "usb_device");
-       if (ret < 0)
-               goto err_destruct;
-
        /* creation of additional special files should go here */
 
        dev_info(&interface->dev, "Line6 %s now attached\n",
@@ -649,10 +644,6 @@ void line6_disconnect(struct usb_interface *interface)
        if (usbdev == NULL)
                return;
 
-       /* removal of additional special files should go here */
-
-       sysfs_remove_link(&interface->dev.kobj, "usb_device");
-
        interface_number = interface->cur_altsetting->desc.bInterfaceNumber;
        line6 = usb_get_intfdata(interface);