From owner-cvs-all@FreeBSD.ORG Fri Jul 16 16:59:33 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEF4216A4D1; Fri, 16 Jul 2004 16:59:33 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9191A43D67; Fri, 16 Jul 2004 16:59:33 +0000 (GMT) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6GGxWS2005365; Fri, 16 Jul 2004 16:59:32 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6GGxW9W005364; Fri, 16 Jul 2004 16:59:32 GMT (envelope-from njl) Message-Id: <200407161659.i6GGxW9W005364@repoman.freebsd.org> From: Nate Lawson Date: Fri, 16 Jul 2004 16:59:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi_video.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 16:59:34 -0000 njl 2004-07-16 16:59:32 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_video.c Log: Fix acpi_video loading. When we started cleaning up the duplicate handles left around after the PCI probe, acpi_video stopped attaching because while it was an acpi child device, it really is a PCI device. Fix this by making it a PCI child. * Remove non-handle ivars accesses since child busses only implement acpi_get_handle(). * Access the acpi softc directly through the devclass instead of through the implied parent. * Clean up a potential panic on unload by freeing the sysctl context before storing NULL in the OID. Found by: marks Revision Changes Path 1.5 +4 -5 src/sys/dev/acpica/acpi_video.c