]> git.baikalelectronics.ru Git - uboot.git/commit
colibri_imx7: provide proper node name to pmic_get
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Mon, 22 Jul 2019 09:05:06 +0000 (12:05 +0300)
committerStefano Babic <sbabic@denx.de>
Sun, 13 Oct 2019 20:49:12 +0000 (22:49 +0200)
commit59f52727e38a522b512f14c1ad5fae0d7382741d
tree3c6e0fcba5e270f4ee63e71d647db7f917b8f5e8
parent389eb58dd10d524a809e440115439fb465403f4e
colibri_imx7: provide proper node name to pmic_get

Implementation of pmic_get() uses uclass_find_device_by_name(), which
behaviour was changed in e3444b11c2
("drivers: core: use strcmp when find device by name"). Now we have to
supply full node name with unit address.

Fixes boot issue:
U-Boot 2019.07-00788-g0ef6e69a1e-dirty (Jul 19 2019 - 15:27:02 +0300)

CPU:   Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 41C
Reset cause: POR
DRAM:  512 MiB
initcall sequence 9ffd3a4c failed at call 87803c61 (err=-19)
ERROR Please RESET the board

Fixes: e3444b11c2("drivers: core: use strcmp when find device by name")
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
board/toradex/colibri_imx7/colibri_imx7.c