HomeFreeBSD

acpi_toshiba: Use device_get_softc in attach.

Description

acpi_toshiba: Use device_get_softc in attach.

Rather than a detour via the devclass and hardcoding unit 0.

While here, remove a check for sc being NULL. It will never be NULL
when attach is called.

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

Details

Provenance
jhbAuthored on Apr 21 2022, 5:29 PM
Reviewer
imp
Differential Revision
D35010: acpi_toshiba: Use device_get_softc in attach.
Parents
rGc1d90b2d0222: vgapm: Use devclass_find to lookup the vga devclass in suspend and resume.
Branches
Unknown
Tags
Unknown