Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160344523
D56808.id177398.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1005 B
Referenced Files
None
Subscribers
None
D56808.id177398.diff
View Options
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -642,7 +642,8 @@
status = acpi_GetHandleInScope(sc->handle,
__DECONST(char *, constraint->name), &constraint->handle);
if (ACPI_FAILURE(status)) {
- device_printf(dev, "failed to get handle for %s\n",
+ device_printf(dev,
+ "Constraints: Cannot get handle for %s, ignoring\n",
constraint->name);
constraint->handle = NULL;
}
@@ -664,16 +665,6 @@
if (constraint->handle == NULL)
continue;
- ACPI_STATUS status = acpi_GetHandleInScope(sc->handle,
- __DECONST(char *, constraint->name), &constraint->handle);
- if (ACPI_FAILURE(status)) {
- device_printf(sc->dev, "failed to get handle for %s\n",
- constraint->name);
- constraint->handle = NULL;
- }
- if (constraint->handle == NULL)
- continue;
-
#ifdef notyet
int d_state;
if (ACPI_FAILURE(acpi_pwr_get_state(constraint->handle, &d_state)))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 24, 12:34 PM (11 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32776393
Default Alt Text
D56808.id177398.diff (1005 B)
Attached To
Mode
D56808: acpi_spmc(4): Constraints: Clearer message on handle retrieve error
Attached
Detach File
Event Timeline
Log In to Comment