usb: core: skip interfaces disabled in devicetree
authorMans Rullgard <mans@mansr.com>
Tue, 19 Feb 2019 14:52:26 +0000 (14:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 10:29:01 +0000 (11:29 +0100)
commit01fdf179f4b064d4c9d30b39aba178caf32649f4
tree5650c0f700cdc45b7d1a9754dcbcc4d5fa276565
parenteb76b37aaf7e6bdd6638bf5b2ef29688645e03b8
usb: core: skip interfaces disabled in devicetree

If an interface has an associated devicetree node with status disabled,
do not register the device.  This is useful for boards with a built-in
multifunction USB device where some functions are broken or otherwise
undesired.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/message.c