From owner-svn-src-head@FreeBSD.ORG Mon Mar 18 23:35:01 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AA72A1F6; Mon, 18 Mar 2013 23:35:01 +0000 (UTC) (envelope-from ray@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 98EB83CE; Mon, 18 Mar 2013 23:35:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2INZ1p4042565; Mon, 18 Mar 2013 23:35:01 GMT (envelope-from ray@svn.freebsd.org) Received: (from ray@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2INZ1Cx042564; Mon, 18 Mar 2013 23:35:01 GMT (envelope-from ray@svn.freebsd.org) Message-Id: <201303182335.r2INZ1Cx042564@svn.freebsd.org> From: Aleksandr Rybalko Date: Mon, 18 Mar 2013 23:35:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r248480 - head/sys/dev/fdt X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Mar 2013 23:35:01 -0000 Author: ray Date: Mon Mar 18 23:35:01 2013 New Revision: 248480 URL: http://svnweb.freebsd.org/changeset/base/248480 Log: Allow simplebus to attach in less strict way, when "simple-bus" listed on not first position of compatible property, so simplebus driver can be generic driver for any bus listed as compatible with "simple-bus". Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/fdt/simplebus.c Modified: head/sys/dev/fdt/simplebus.c ============================================================================== --- head/sys/dev/fdt/simplebus.c Mon Mar 18 23:31:22 2013 (r248479) +++ head/sys/dev/fdt/simplebus.c Mon Mar 18 23:35:01 2013 (r248480) @@ -134,12 +134,12 @@ static int simplebus_probe(device_t dev) { - if (!ofw_bus_is_compatible_strict(dev, "simple-bus")) + if (!ofw_bus_is_compatible(dev, "simple-bus")) return (ENXIO); device_set_desc(dev, "Flattened device tree simple bus"); - return (BUS_PROBE_DEFAULT); + return (BUS_PROBE_GENERIC); } static int