]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
smapi: Use devclass_find to lookup smapi devclass in unload handler.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 5 May 2022 23:35:40 +0000 (16:35 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 5 May 2022 23:35:40 +0000 (16:35 -0700)
commit5ad42f80559cd37fbd2897df4f6462fb43330608
tree261ce058bb0dd899ebae19bf277eae0735e46325
parentd4f988e1886fee0c89443b6937bf47b6439f80b0
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
sys/i386/bios/smapi.c