On Sat, 19 Nov 2016 00:55:46 +0000 (UTC)
Olivier Houchard <[email protected]> wrote:
...
> @@ -265,6 +269,16 @@ omap_ehci_probe(device_t dev)
>       if (!ofw_bus_is_compatible(dev, "ti,ehci-omap"))
>               return (ENXIO);
>  
> +#ifdef SOC_OMAP4
> +     /* 
> +      * If we're running a Pandaboard, run Pandaboard-specific 
> +      * init code.
> +      */
> +     root = OF_finddevice("/");
> +     if (fdt_is_compatible(root, "ti,omap4-panda"))
> +             pandaboard_usb_hub_init();
> +#endif

Shouldn't this be in the attach function? It should also use
ofw_bus_node_is_compatible as I'm about to remove fdt_is_compatible.

Andrew
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to