commit | 5159c0c65073df09894a44c38f6a7d8229161f17 | [log] [tgz] |
---|---|---|
author | Mario Six <mario.six@gdsys.cc> | Mon Oct 15 09:24:07 2018 +0200 |
committer | Simon Glass <sjg@chromium.org> | Wed Nov 14 09:16:27 2018 -0800 |
tree | 0ad682ea4ea76be8edd1adf8209db1e1d97cc87e | |
parent | d9eb9f04763d186b980dffdb684e474bc8a79ab4 [diff] |
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>