atopcase.c (64fbda90da1b91d2412a5b970a3996f3cf1c8522) | atopcase.c (18250ec6c089c0c50cbd9fd87d78e03ff89916df) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2021-2023 Val Packett <val@packett.cool> 5 * Copyright (c) 2023 Vladimir Kondratyev <wulf@FreeBSD.org> 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 519 unchanged lines hidden (view full) --- 528 if (!sc->sc_backlight) { 529 device_printf(sc->sc_dev, "can't register backlight\n"); 530 err = ENOMEM; 531 } 532 533 if (sc->sc_tq != NULL) 534 taskqueue_enqueue_timeout(sc->sc_tq, &sc->sc_task, hz / 120); 535 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2021-2023 Val Packett <val@packett.cool> 5 * Copyright (c) 2023 Vladimir Kondratyev <wulf@FreeBSD.org> 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 519 unchanged lines hidden (view full) --- 528 if (!sc->sc_backlight) { 529 device_printf(sc->sc_dev, "can't register backlight\n"); 530 err = ENOMEM; 531 } 532 533 if (sc->sc_tq != NULL) 534 taskqueue_enqueue_timeout(sc->sc_tq, &sc->sc_task, hz / 120); 535 |
536 return (bus_generic_attach(sc->sc_dev)); | 536 bus_attach_children(sc->sc_dev); 537 return (0); |
537 538err: 539 return (err); 540} 541 542int 543atopcase_destroy(struct atopcase_softc *sc) 544{ --- 178 unchanged lines hidden --- | 538 539err: 540 return (err); 541} 542 543int 544atopcase_destroy(struct atopcase_softc *sc) 545{ --- 178 unchanged lines hidden --- |