From: Takashi Iwai Date: Mon, 19 Jan 2015 14:02:30 +0000 (+0100) Subject: ALSA: line6: Drop usb_device sysfs symlink X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45a82f18913fd9b959f0703ed47750733840e92a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ALSA: line6: Drop usb_device sysfs symlink It's non-standard and rather superfluous. Tested-by: Chris Rorvick Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c index 149c393c7302..23d504f4b6bc 100644 --- a/sound/usb/line6/driver.c +++ b/sound/usb/line6/driver.c @@ -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);