summaryrefslogtreecommitdiff
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-03-18 18:54:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-23 14:39:39 +0300
commita2a28c25c25a0d35517e16c37e2586de1879242c (patch)
tree58242e3927d497e83d4e2b4fe55a168d58ab0365 /drivers/usb/core
parent8460f6003a1d2633737b89c4f69d6f4c0c7c65a3 (diff)
downloadlinux-a2a28c25c25a0d35517e16c37e2586de1879242c.tar.xz
USB: core: drop outdated interface-binding comment
It's been almost twenty years since USB drivers returned a data pointer from their probe routines in order to bind to an interface. Time to update the documentation for usb_driver_claim_interface(). Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210318155406.22399-1-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/driver.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
index 4dfa44d6cc3c..a1013d9da08d 100644
--- a/drivers/usb/core/driver.c
+++ b/drivers/usb/core/driver.c
@@ -526,10 +526,6 @@ static int usb_unbind_interface(struct device *dev)
* No device driver should directly modify internal usb_interface or
* usb_device structure members.
*
- * Few drivers should need to use this routine, since the most natural
- * way to bind to an interface is to return the private data from
- * the driver's probe() method.
- *
* Callers must own the device lock, so driver probe() entries don't need
* extra locking, but other call contexts may need to explicitly claim that
* lock.