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, Apr 15, 12:55 PM
Unknown Object (File)
Sun, Apr 12, 7:30 PM
Unknown Object (File)
Sun, Apr 12, 4:41 PM
Unknown Object (File)
Sun, Apr 12, 8:46 AM
Unknown Object (File)
Sat, Apr 11, 11:59 PM
Unknown Object (File)
Sat, Apr 11, 11:53 PM
Unknown Object (File)
Wed, Apr 8, 11:24 PM
Unknown Object (File)
Tue, Apr 7, 7:02 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