Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2004 21:02:16 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        jhb@freebsd.org
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/i386/i386 bios.c
Message-ID:  <20040615.210216.97064988.imp@bsdimp.com>
In-Reply-To: <200406152008.50656.jhb@FreeBSD.org>
References:  <200406150212.i5F2CCaH095335@repoman.freebsd.org> <200406152008.50656.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200406152008.50656.jhb@FreeBSD.org>
            John Baldwin <jhb@freebsd.org> writes:
: On Monday 14 June 2004 10:12 pm, Nate Lawson wrote:
: > njl         2004-06-15 02:12:12 UTC
: >
: >   FreeBSD src repository
: >
: >   Modified files:
: >     sys/i386/i386        bios.c
: >   Log:
: >   We only need the devclass_find() result, not the softc.
: 
: The devclass still exists if there is no acpi0 device due to 'set 
: hint.acpi.0.disabled=1'.  Perhaps devclass_get_device() is more appropriate 
: than devclass_get_softc() though.

The hint is insufficient to create the devclass, I believe.  It exists
because there's a node in the tree or could be a node in the tree.
devclass_get_device() and checking to see if it is attached might be
even better.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040615.210216.97064988.imp>