[PATCH 12/34] usb: dwc3: core: add DeviceTree match table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



in the long run we will have DeviceTree creating
all devices for us. Adding a match table here is
the first step towards that goal.

Signed-off-by: Felipe Balbi <balbi@xxxxxx>
---
 drivers/usb/dwc3/core.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 410835e..dab28f1 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -515,11 +515,19 @@ static int __devexit dwc3_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static const struct of_device_id of_dwc3_match[] = {
+	{
+		"synosys,dwc3",
+	},
+	{  }, /* Terminating Entry */
+};
+
 static struct platform_driver dwc3_driver = {
 	.probe		= dwc3_probe,
 	.remove		= __devexit_p(dwc3_remove),
 	.driver		= {
 		.name	= "dwc3",
+		.of_match_table = of_dwc3_match,
 	},
 };
 
-- 
1.7.8.rc3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux