summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/udc/bdc/bdc_core.c
diff options
context:
space:
mode:
authorFlorian Fainelli2017-07-19 21:11:44 +0200
committerFelipe Balbi2017-08-15 13:18:58 +0200
commit8ac1685bf911f70aea6de67b3db5674c3ea112f1 (patch)
tree392009bd0f6bb38bf8455bf351a08f28b8448e2d /drivers/usb/gadget/udc/bdc/bdc_core.c
parentusb: bdc: Small code cleanup (diff)
downloadkernel-qcow2-linux-8ac1685bf911f70aea6de67b3db5674c3ea112f1.tar.gz
kernel-qcow2-linux-8ac1685bf911f70aea6de67b3db5674c3ea112f1.tar.xz
kernel-qcow2-linux-8ac1685bf911f70aea6de67b3db5674c3ea112f1.zip
usb: bdc: hook a quick Device Tree compatible string
Allows Device Tree probing Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Al Cooper <alcooperx@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/udc/bdc/bdc_core.c')
-rw-r--r--drivers/usb/gadget/udc/bdc/bdc_core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
index c2bfae2347c3..bc0729b84948 100644
--- a/drivers/usb/gadget/udc/bdc/bdc_core.c
+++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
@@ -533,9 +533,17 @@ static int bdc_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id bdc_of_match[] = {
+ { .compatible = "brcm,bdc-v0.16" },
+ { .compatible = "brcm,bdc" },
+ { /* sentinel */ }
+};
+
static struct platform_driver bdc_driver = {
.driver = {
.name = BRCM_BDC_NAME,
+ .owner = THIS_MODULE,
+ .of_match_table = bdc_of_match,
},
.probe = bdc_probe,
.remove = bdc_remove,