Date: Tue, 12 Jan 2010 22:02:49 GMT From: Rafal Jaworowski <raj@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 173043 for review Message-ID: <201001122202.o0CM2nnY033897@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=173043 Change 173043 by raj@raj_fdt on 2010/01/12 22:02:04 Move to a more natural logic flow in simplebus_probe(). Affected files ... .. //depot/projects/fdt/sys/dev/fdt/simplebus.c#3 edit Differences ... ==== //depot/projects/fdt/sys/dev/fdt/simplebus.c#3 (text+ko) ==== @@ -141,12 +141,11 @@ simplebus_probe(device_t dev) { - if (ofw_bus_is_compatible(dev, "simple-bus")) { - device_set_desc(dev, "Flattened device tree simple bus"); - return (BUS_PROBE_DEFAULT); - } + if (!ofw_bus_is_compatible(dev, "simple-bus")) + return (ENXIO); - return (ENXIO); + device_set_desc(dev, "Flattened device tree simple bus"); + return (BUS_PROBE_DEFAULT); } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001122202.o0CM2nnY033897>