svn commit: r202567 - head/sys/dev/acpica

Andriy Gapon avg at FreeBSD.org
Mon Jan 18 11:33:59 UTC 2010


Author: avg
Date: Mon Jan 18 11:33:58 2010
New Revision: 202567
URL: http://svn.freebsd.org/changeset/base/202567

Log:
  acpi_ec: remove redundant acpi_disabled check in probe method
  
  MFC after:	4 days

Modified:
  head/sys/dev/acpica/acpi_ec.c

Modified: head/sys/dev/acpica/acpi_ec.c
==============================================================================
--- head/sys/dev/acpica/acpi_ec.c	Mon Jan 18 11:29:51 2010	(r202566)
+++ head/sys/dev/acpica/acpi_ec.c	Mon Jan 18 11:33:58 2010	(r202567)
@@ -366,8 +366,7 @@ acpi_ec_probe(device_t dev)
     if (params != NULL) {
 	ecdt = 1;
 	ret = 0;
-    } else if (!acpi_disabled("ec") &&
-	ACPI_ID_PROBE(device_get_parent(dev), dev, ec_ids)) {
+    } else if (ACPI_ID_PROBE(device_get_parent(dev), dev, ec_ids)) {
 	params = malloc(sizeof(struct acpi_ec_params), M_TEMP,
 			M_WAITOK | M_ZERO);
 	h = acpi_get_handle(dev);


More information about the svn-src-head mailing list