core: ofnode: Fix ofnode_get_addr_index function
authorKeerthy <j-keerthy@ti.com>
Mon, 19 Nov 2018 06:14:47 +0000 (11:44 +0530)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Nov 2018 16:30:06 +0000 (09:30 -0700)
commit1678754f5e2cbc14f9612e953b39cc08ada66866
tree892c4d00e1676c9db7c3b8f12a3239fa3d966626
parentabdc7b8a2d7f2b8527ce4f9133b777942af99126
core: ofnode: Fix ofnode_get_addr_index function

Currently the else part of ofnode_get_addr_index function
does not fetch addresses based on the index but rather just
returns the base address. Fix that.

Signed-off-by: Keerthy <j-keerthy@ti.com>
drivers/core/ofnode.c