[PATCH v2 07/11] sysreset: socfpga: Use parent device for reading base address

Simon Glass sjg at chromium.org
Fri May 27 17:54:16 CEST 2022


On Thu, 26 May 2022 at 07:38, Paweł Anikiel <pan at semihalf.com> wrote:
>
> This driver is a child of the rstmgr driver, both of which share the
> same devicetree node. As a result, passing the child's udevice pointer
> to dev_read_addr_ptr results in a failure of reading the #address-cells
> property. Use the parent udevice pointer instead.
>
> Signed-off-by: Paweł Anikiel <pan at semihalf.com>
> ---
>  drivers/sysreset/sysreset_socfpga.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list