Allow orm(4) to be disabled from probing/attaching by a hints entry:
hint.orm.0.disabled=1 Suggested by: jhb Reviewed by: jhb MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D6307
This commit is contained in:
parent
cf8cdda37c
commit
c850971baf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299392
@ -91,6 +91,9 @@ orm_identify(driver_t* driver, device_t parent)
|
||||
struct orm_softc *sc;
|
||||
u_int8_t buf[3];
|
||||
|
||||
if (resource_disabled("orm", 0))
|
||||
return;
|
||||
|
||||
child = BUS_ADD_CHILD(parent, ISA_ORDER_SENSITIVE, "orm", -1);
|
||||
device_set_driver(child, driver);
|
||||
isa_set_logicalid(child, ORM_ID);
|
||||
|
Loading…
Reference in New Issue
Block a user