]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen: Use devclass_find to lookup devclasses in identify.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 25 Apr 2022 18:55:30 +0000 (11:55 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 25 Apr 2022 18:55:30 +0000 (11:55 -0700)
commit651a887f4e66b15145508e74db72ebb73c22112b
tree78db82a382ebb235d0e0d32af9e2ba68426c6bca
parentccaec73d0b490a95e97f1adb973de70f7421d52c
xen: Use devclass_find to lookup devclasses in identify.

While here, use driver->name instead of hardcoding the xenpv and
xen_et strings both for devclass_find() and BUS_ADD_CHILD().

Reviewed by: Elliott Mitchell <ehem+freebsd@m5p.com>, imp, royger
Differential Revision: https://reviews.freebsd.org/D35001
sys/dev/xen/bus/xenpv.c
sys/dev/xen/timer/timer.c