diff --git a/sys/dev/acpi/ym_acpi.c b/sys/dev/acpi/ym_acpi.c index 1de9d9fc8ee8..05ed4536f746 100644 --- a/sys/dev/acpi/ym_acpi.c +++ b/sys/dev/acpi/ym_acpi.c @@ -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 @@ -29,7 +29,7 @@ */ #include -__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 @@ ym_acpi_match(device_t parent, cfdata_t match, void *aux) 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;