acpi_hpet: Use devclass_find to find devclass in identify.
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34990
This commit is contained in:
@@ -421,7 +421,7 @@ hpet_identify(driver_t *driver, device_t parent)
|
||||
int i;
|
||||
|
||||
/* Only one HPET device can be added. */
|
||||
if (devclass_get_device(hpet_devclass, 0))
|
||||
if (devclass_get_device(devclass_find("hpet"), 0))
|
||||
return;
|
||||
for (i = 1; ; i++) {
|
||||
/* Search for HPET table. */
|
||||
|
||||
Reference in New Issue
Block a user