HomeFreeBSD

psm: Swap the unit member in the softc for a device_t.

Description

psm: Swap the unit member in the softc for a device_t.

This entails various changes to make this driver more "modern"
(new-bus vs pre-new-bus) using device_log() and device_printf() rather
than psm%d. It also fixes the device_busy/unbusy calls to use sc->dev
directly rather than looking the device_t up via the devclass and
unit.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D35006

(cherry picked from commit a6c09f20e8e00bec7d9eb088b4f32dd38bf7f490)

Details

Provenance
jhbAuthored on Apr 21 2022, 8:52 PM
Reviewer
imp
Differential Revision
D35006: psm: Swap the unit member in the softc for a device_t.
Parents
rGcc50ec0289bc: Add device and ifnet logging methods, similar to device_printf / if_printf
Branches
Unknown
Tags
Unknown