]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
firewire: Initialize firewire_devclass in fw_modevent.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 27 Apr 2022 19:26:05 +0000 (12:26 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 27 Apr 2022 19:26:05 +0000 (12:26 -0700)
commitfa160738bd18db58b811ed6716330527416f2eda
tree8e9645e245b6c0ed7df49df98fd8ce64737937e6
parente6dede145616ed8f98c629c23a2ba206b812c921
firewire: Initialize firewire_devclass in fw_modevent.

The use of devclass_get_softc() combined with cdev unit numbers is
probably not ideal (probably should be initializing si_drv1 when each
cdev is created instead), but it looks like a bit of a PITA to do, so
just initialize the devclass explicitly instead.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D35060
sys/dev/firewire/firewire.c