svn commit: r309063 - head/sys/arm/allwinner
Emmanuel Vadot
manu at FreeBSD.org
Wed Nov 23 18:07:45 UTC 2016
Author: manu
Date: Wed Nov 23 18:07:44 2016
New Revision: 309063
URL: https://svnweb.freebsd.org/changeset/base/309063
Log:
Test that the emac device is enabled in probe function
MFC after: 3 days
Modified:
head/sys/arm/allwinner/if_emac.c
Modified: head/sys/arm/allwinner/if_emac.c
==============================================================================
--- head/sys/arm/allwinner/if_emac.c Wed Nov 23 17:53:07 2016 (r309062)
+++ head/sys/arm/allwinner/if_emac.c Wed Nov 23 18:07:44 2016 (r309063)
@@ -783,6 +783,9 @@ static int
emac_probe(device_t dev)
{
+ if (!ofw_bus_status_okay(dev))
+ return (ENXIO);
+
if (!ofw_bus_is_compatible(dev, "allwinner,sun4i-a10-emac"))
return (ENXIO);
More information about the svn-src-all
mailing list