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

(cherry picked from commit 1ac10fa429370731be57dee76b19896e01764b76)

Details

Provenance
jhbAuthored on Apr 21 2022, 5:29 PM
Reviewer
imp
Differential Revision
D35010: acpi_toshiba: Use device_get_softc in attach.
Parents
rGd2ebb215b8cf: arcmsr: Remove never-true NULL check from cdev callbacks.
Branches
Unknown
Tags
Unknown