mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Use hwreset_get_by_ofw_idx() function instead, since there is
no reset-names dts property defined for IR in case of H3 SoC. That way IR works on H3 SoC based board. Tested on Orangepi mini 2 board.
This commit is contained in:
parent
9ba5e29c5c
commit
5657848913
1 changed files with 1 additions and 1 deletions
|
|
@ -419,7 +419,7 @@ aw_ir_attach(device_t dev)
|
|||
}
|
||||
|
||||
/* De-assert reset */
|
||||
if (hwreset_get_by_ofw_name(dev, 0, "apb", &rst_apb) == 0) {
|
||||
if (hwreset_get_by_ofw_idx(dev, 0, 0, &rst_apb) == 0) {
|
||||
err = hwreset_deassert(rst_apb);
|
||||
if (err != 0) {
|
||||
device_printf(dev, "cannot de-assert reset\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue