aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 09:02:30 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-20 02:15:53 -0500
commit45a82f18913fd9b959f0703ed47750733840e92a (patch)
treeaf7471066aa21c3ee54acbc9f0b7aa42ed229e16 /sound/usb
parent988d350aef30b798198e7915c574f82ba173f40f (diff)
ALSA: line6: Drop usb_device sysfs symlink
It's non-standard and rather superfluous. Tested-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/line6/driver.c9
1 files changed, 0 insertions, 9 deletions
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,
611 if (ret < 0) 611 if (ret < 0)
612 goto err_destruct; 612 goto err_destruct;
613 613
614 ret = sysfs_create_link(&interface->dev.kobj, &usbdev->dev.kobj,
615 "usb_device");
616 if (ret < 0)
617 goto err_destruct;
618
619 /* creation of additional special files should go here */ 614 /* creation of additional special files should go here */
620 615
621 dev_info(&interface->dev, "Line6 %s now attached\n", 616 dev_info(&interface->dev, "Line6 %s now attached\n",
@@ -649,10 +644,6 @@ void line6_disconnect(struct usb_interface *interface)
649 if (usbdev == NULL) 644 if (usbdev == NULL)
650 return; 645 return;
651 646
652 /* removal of additional special files should go here */
653
654 sysfs_remove_link(&interface->dev.kobj, "usb_device");
655
656 interface_number = interface->cur_altsetting->desc.bInterfaceNumber; 647 interface_number = interface->cur_altsetting->desc.bInterfaceNumber;
657 line6 = usb_get_intfdata(interface); 648 line6 = usb_get_intfdata(interface);
658 649