
6 Aug
2018
6 Aug
'18
3:10 p.m.
On Fri, 3 Aug 2018 10:01:10 +0200 Mario Six mario.six@gdsys.cc wrote:
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
v3 -> v4:
- Introduced else clause in of_live_active() if statement to make the distinction between live and non-live cases clearer
v2 -> v3: New in v3
drivers/core/regmap.c | 68 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 12 deletions(-)
Applied to u-boot-staging/agust@denx.de, thanks!
-- Anatolij