Page MenuHomeFreeBSD

acpi_toshiba: Use device_get_softc in attach.
ClosedPublic

Authored by jhb on Apr 20 2022, 8:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 30, 12:24 PM
Unknown Object (File)
Oct 9 2024, 6:57 AM
Unknown Object (File)
Sep 26 2024, 7:09 PM
Unknown Object (File)
Sep 26 2024, 10:46 AM
Unknown Object (File)
Sep 21 2024, 7:49 AM
Unknown Object (File)
Sep 19 2024, 3:43 PM
Unknown Object (File)
Sep 19 2024, 12:37 AM
Unknown Object (File)
Sep 18 2024, 5:37 PM
Subscribers
None

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable