|
1 | | -/* $NetBSD: ti_lcdc.c,v 1.14 2022/09/25 07:50:32 riastradh Exp $ */ |
| 1 | +/* $NetBSD: ti_lcdc.c,v 1.15 2025/10/13 14:12:13 thorpej Exp $ */ |
2 | 2 |
|
3 | 3 | /*- |
4 | 4 | * Copyright (c) 2019 Jared D. McNeill <jmcneill@invisible.ca> |
|
27 | 27 | */ |
28 | 28 |
|
29 | 29 | #include <sys/cdefs.h> |
30 | | -__KERNEL_RCSID(0, "$NetBSD: ti_lcdc.c,v 1.14 2022/09/25 07:50:32 riastradh Exp $"); |
| 30 | +__KERNEL_RCSID(0, "$NetBSD: ti_lcdc.c,v 1.15 2025/10/13 14:12:13 thorpej Exp $"); |
31 | 31 |
|
32 | 32 | #include <sys/param.h> |
33 | 33 | #include <sys/bus.h> |
@@ -381,20 +381,17 @@ tilcdc_attach(device_t parent, device_t self, void *aux) |
381 | 381 | struct fdt_attach_args * const faa = aux; |
382 | 382 | const int phandle = faa->faa_phandle; |
383 | 383 | struct drm_driver * const driver = &tilcdc_driver; |
384 | | - prop_dictionary_t dict = device_properties(self); |
385 | | - bool is_disabled; |
386 | 384 | bus_addr_t addr; |
387 | 385 | bus_size_t size; |
388 | 386 | int error; |
389 | 387 |
|
390 | | - if (prop_dictionary_get_bool(dict, "disabled", &is_disabled) && is_disabled) { |
| 388 | + if (device_getprop_bool(self, "disabled")) { |
391 | 389 | aprint_normal(": TI LCDC (disabled)\n"); |
392 | 390 | return; |
393 | 391 | } |
394 | 392 |
|
395 | 393 | #ifdef WSDISPLAY_MULTICONS |
396 | | - const bool is_console = true; |
397 | | - prop_dictionary_set_bool(dict, "is_console", is_console); |
| 394 | + device_setprop_bool(self, "is_console", true); |
398 | 395 | #endif |
399 | 396 |
|
400 | 397 | if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) { |
|
0 commit comments