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