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)
Mon, May 18, 7:32 AM
Unknown Object (File)
Mon, May 18, 4:21 AM
Unknown Object (File)
Mon, May 18, 4:14 AM
Unknown Object (File)
Wed, May 13, 10:42 PM
Unknown Object (File)
Wed, May 13, 10:42 PM
Unknown Object (File)
Wed, May 13, 10:34 PM
Unknown Object (File)
Sun, May 10, 7:09 AM
Unknown Object (File)
Sun, May 10, 7:05 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