Module Name: src Committed By: jmcneill Date: Wed Aug 19 00:31:17 UTC 2009
Modified Files: src/sys/dev/acpi: ym_acpi.c Log Message: Adapt for ACPICA API changes. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/dev/acpi/ym_acpi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/ym_acpi.c diff -u src/sys/dev/acpi/ym_acpi.c:1.9 src/sys/dev/acpi/ym_acpi.c:1.10 --- src/sys/dev/acpi/ym_acpi.c:1.9 Tue Aug 18 16:41:02 2009 +++ src/sys/dev/acpi/ym_acpi.c Wed Aug 19 00:31:16 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: ym_acpi.c,v 1.9 2009/08/18 16:41:02 jmcneill Exp $ */ +/* $NetBSD: ym_acpi.c,v 1.10 2009/08/19 00:31:16 jmcneill Exp $ */ /* * Copyright (c) 2006 Jasper Wallace <jas...@pointless.net> @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ym_acpi.c,v 1.9 2009/08/18 16:41:02 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ym_acpi.c,v 1.10 2009/08/19 00:31:16 jmcneill Exp $"); #include "mpu_ym.h" @@ -64,6 +64,8 @@ if (aa->aa_node->ad_type != ACPI_TYPE_DEVICE) return 0; + if (!aa->aa_node->ad_devinfo->HardwareId.String) + return 0; /* Yamaha OPL3-SA2 or OPL3-SA3 */ if (strcmp("YMH0021", aa->aa_node->ad_devinfo->HardwareId.String)) return 0;