Date: Wed, 23 Nov 2016 18:07:44 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309063 - head/sys/arm/allwinner Message-ID: <201611231807.uANI7itS067745@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611231807.uANI7itS067745>