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)
Nov 28 2025, 5:16 PM
Unknown Object (File)
Nov 23 2025, 10:38 PM
Unknown Object (File)
Nov 17 2025, 9:14 PM
Unknown Object (File)
Nov 14 2025, 2:32 AM
Unknown Object (File)
Nov 8 2025, 5:02 AM
Unknown Object (File)
Nov 4 2025, 3:23 AM
Unknown Object (File)
Oct 29 2025, 8:52 AM
Unknown Object (File)
Oct 29 2025, 8:47 AM
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