Don't call acpi_disabled() because we are not part of the acpi.ko
module. Instead, use resource_disabled() that doesn't depend on any module. Noticed by: Ian FREISLICH <ianf at clue.co.za>
This commit is contained in:
parent
429cc1009b
commit
9cb3ef6efe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178122
@ -254,7 +254,7 @@ asmc_probe(device_t dev)
|
||||
{
|
||||
struct asmc_model *model;
|
||||
|
||||
if (acpi_disabled("asmc"))
|
||||
if (resource_disabled("asmc", 0))
|
||||
return (ENXIO);
|
||||
if (ACPI_ID_PROBE(device_get_parent(dev), dev, asmc_ids) == NULL)
|
||||
return (ENXIO);
|
||||
|
Loading…
Reference in New Issue
Block a user