]> git.baikalelectronics.ru Git - uboot.git/commit
regmap: Introduce init_range
authorMario Six <mario.six@gdsys.cc>
Mon, 15 Oct 2018 07:24:07 +0000 (09:24 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commit0cf7de2b1a51c53e8bed27a54f395a4d28905b4d
tree0ad682ea4ea76be8edd1adf8209db1e1d97cc87e
parent08a3323536c6244b7aed3f166549218c7b9caccb
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: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mario Six <mario.six@gdsys.cc>
drivers/core/regmap.c