Skip to content
Snippets Groups Projects
Commit 7f0e3669 authored by Mario Six's avatar Mario Six Committed by Simon Glass
Browse files

regmap: Introduce init_range


Both fdtdec_get_addr_size_fixed and of_address_to_resource can fail with
an error, which is not currently checked during regmap initialization.

Since the indentation depth is already quite deep, extract a new
'init_range' method to do the initialization.

Reviewed-by: default avatarAnatolij Gustschin <agust@denx.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarMario Six <mario.six@gdsys.cc>
parent 0689036a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment