HomeFreeBSD

smapi: Use devclass_find to lookup smapi devclass in unload handler.

Description

smapi: Use devclass_find to lookup smapi devclass in unload handler.

Move smapi_modevent below the declaration of smapi_driver so that
smapi_driver's name member can be used rather than hardcoding the
device class name.

Differential Revision: https://reviews.freebsd.org/D35064

Details

Provenance
jhbAuthored on May 5 2022, 11:35 PM
Differential Revision
D35064: smapi: Use devclass_find to lookup smapi devclass in unload handler.
Parents
rGd4f988e1886f: smapi: Store softc pointer in si_drv1 of cdev.
Branches
Unknown
Tags
Unknown