Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151882212
D34986.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
634 B
Referenced Files
None
Subscribers
None
D34986.id.diff
View Options
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c
--- a/sys/dev/acpica/acpi_acad.c
+++ b/sys/dev/acpica/acpi_acad.c
@@ -260,7 +260,7 @@
acpi_acad_ac_only(void __unused *arg)
{
- if (devclass_get_count(acpi_acad_devclass) == 0)
+ if (devclass_get_count(devclass_find("acpi_acad")) == 0)
acpi_UserNotify("ACAD", ACPI_ROOT_OBJECT, 1);
}
@@ -273,7 +273,7 @@
struct acpi_acad_softc *sc;
device_t dev;
- dev = devclass_get_device(acpi_acad_devclass, 0);
+ dev = devclass_get_device(devclass_find("acpi_acad"), 0);
if (dev == NULL)
return (ENXIO);
sc = device_get_softc(dev);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 8:04 AM (2 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31337360
Default Alt Text
D34986.id.diff (634 B)
Attached To
Mode
D34986: acpi_acad: Use devclass_find to find the acpi_acad devclass.
Attached
Detach File
Event Timeline
Log In to Comment