From acab7270b6a4f09a06b0d74ebb01467ae63680df Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 26 Mar 2015 15:13:18 +0100 Subject: if_dwc: Workaround for missing FDT support --- freebsd/sys/dev/dwc/if_dwc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c index 857f146c..4aaad5dd 100644 --- a/freebsd/sys/dev/dwc/if_dwc.c +++ b/freebsd/sys/dev/dwc/if_dwc.c @@ -56,10 +56,12 @@ __FBSDID("$FreeBSD$"); #include #include +#ifndef __rtems__ #include #include #include #include +#endif /* __rtems__ */ #include #include @@ -71,7 +73,9 @@ __FBSDID("$FreeBSD$"); #include #include +#ifndef __rtems__ #include +#endif /* __rtems__ */ #include #include @@ -1096,11 +1100,13 @@ static int dwc_probe(device_t dev) { +#ifndef __rtems__ if (!ofw_bus_status_okay(dev)) return (ENXIO); if (!ofw_bus_is_compatible(dev, "snps,dwmac")) return (ENXIO); +#endif /* __rtems__ */ device_set_desc(dev, "Gigabit Ethernet Controller"); return (BUS_PROBE_DEFAULT); -- cgit v1.2.3