diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-04-21 17:29:15 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-21 17:29:15 +0000 |
| commit | 1ac10fa429370731be57dee76b19896e01764b76 (patch) | |
| tree | 3635994b309a3fdc5553be578f13531046fad28a /sys/dev/acpi_support | |
| parent | c1d90b2d0222c648f2f88d5c7c878aef816c6d32 (diff) | |
Diffstat (limited to 'sys/dev/acpi_support')
| -rw-r--r-- | sys/dev/acpi_support/acpi_toshiba.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/acpi_support/acpi_toshiba.c b/sys/dev/acpi_support/acpi_toshiba.c index c5233579d560..208cc36c9a59 100644 --- a/sys/dev/acpi_support/acpi_toshiba.c +++ b/sys/dev/acpi_support/acpi_toshiba.c @@ -562,9 +562,7 @@ acpi_toshiba_video_attach(device_t dev) { struct acpi_toshiba_softc *sc; - sc = devclass_get_softc(acpi_toshiba_devclass, 0); - if (sc == NULL) - return (ENXIO); + sc = device_get_softc(dev); sc->video_handle = acpi_get_handle(dev); return (0); } |
