Date: Fri, 16 Dec 2016 15:37:19 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r310157 - stable/11/sys/arm/allwinner Message-ID: <201612161537.uBGFbJvO057119@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Fri Dec 16 15:37:18 2016 New Revision: 310157 URL: https://svnweb.freebsd.org/changeset/base/310157 Log: MFC r309063: Test that the emac device is enabled in probe function Modified: stable/11/sys/arm/allwinner/if_emac.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/arm/allwinner/if_emac.c ============================================================================== --- stable/11/sys/arm/allwinner/if_emac.c Fri Dec 16 15:33:21 2016 (r310156) +++ stable/11/sys/arm/allwinner/if_emac.c Fri Dec 16 15:37:18 2016 (r310157) @@ -784,6 +784,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?201612161537.uBGFbJvO057119>