[rtems-libbsd commit] dwc_otg: Add compatibility string, constify

Sebastian Huber sebh at rtems.org
Tue Feb 6 09:03:36 UTC 2018


Module:    rtems-libbsd
Branch:    master
Commit:    b79c025a1232f93323670bf2f508d0f1d2c23609
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b79c025a1232f93323670bf2f508d0f1d2c23609

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb  6 09:28:02 2018 +0100

dwc_otg: Add compatibility string, constify

Support device tree of  Cyclone V SoC Development Kit.

---

 freebsd/sys/dev/usb/controller/dwc_otg_fdt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/freebsd/sys/dev/usb/controller/dwc_otg_fdt.c b/freebsd/sys/dev/usb/controller/dwc_otg_fdt.c
index d08d233..4acbfa4 100644
--- a/freebsd/sys/dev/usb/controller/dwc_otg_fdt.c
+++ b/freebsd/sys/dev/usb/controller/dwc_otg_fdt.c
@@ -59,9 +59,10 @@ __FBSDID("$FreeBSD$");
 
 static device_probe_t dwc_otg_probe;
 
-static struct ofw_compat_data compat_data[] = {
+static const struct ofw_compat_data compat_data[] = {
 	{ "synopsys,designware-hs-otg2",	1 },
 	{ "snps,dwc2",				1 },
+	{ "snps,dwc-otg",			1 },
 	{ NULL,					0 }
 };
 



More information about the vc mailing list