summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-06-12 14:59:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-06-13 09:13:04 +0200
commit2baa16f2740b4546b1ec16390ec118ecba6be09d (patch)
tree78ff5703fb6d24aa08d6a5d898ed11ebf85d4396 /drivers/usb/dwc3
parentcfcd097c843194a6b88b03948afca3c4c547eca6 (diff)
downloadbarebox-2baa16f2740b4546b1ec16390ec118ecba6be09d.tar.gz
barebox-2baa16f2740b4546b1ec16390ec118ecba6be09d.tar.xz
treewide: add MODULE_DEVICE_TABLE markers
Syncing device trees with Linux upstream can lead to breakage, when the device trees are switched to newer bindings, which are not yet supported in barebox. To make it easier to spot such issues, we want to start applying some heuristics to flag possibly problematic DT changes. One step towards being able to do that is to know what nodes barebox actually consumes. Most of the nodes have a compatible entry, which is matched by an array of of_device_id, so let's have MODULE_DEVICE_TABLE point at it for future extraction. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230612125908.1087340-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/core.c1
-rw-r--r--drivers/usb/dwc3/dwc3-of-simple.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 314346fd31..8e6dc59a5d 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -1497,6 +1497,7 @@ static const struct of_device_id of_dwc3_match[] = {
},
{ },
};
+MODULE_DEVICE_TABLE(of, of_dwc3_match);
static struct driver dwc3_driver = {
.probe = dwc3_probe,
diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c
index d94a18e833..e8155321ad 100644
--- a/drivers/usb/dwc3/dwc3-of-simple.c
+++ b/drivers/usb/dwc3/dwc3-of-simple.c
@@ -75,6 +75,7 @@ static const struct of_device_id of_dwc3_simple_match[] = {
{.compatible = "amlogic,meson-gxl-dwc3"},
{.compatible = "allwinner,sun50i-h6-dwc3"},
{/* Sentinel */}};
+MODULE_DEVICE_TABLE(of, of_dwc3_simple_match);
static struct driver dwc3_of_simple_driver = {
.probe = dwc3_of_simple_probe,