]> git.sur5r.net Git - u-boot/commit - common/fdt_support.c
fdt: Correct fdt_get_base_address()
authorSimon Glass <sjg@chromium.org>
Tue, 4 Jul 2017 19:31:20 +0000 (13:31 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 1 Aug 2017 02:58:00 +0000 (11:58 +0900)
commit336a44877af84fc65e58a0759d9dc199e8c97036
tree71816afa953a4aff86ba66589e19cad6ce284ca7
parentc4d660d4d0abcde0fdbcee8401b215fc2b56d7aa
fdt: Correct fdt_get_base_address()

This function appears to obtain the value of the 'ranges' property rather
than 'reg'. As such it does not behave as documented or expected.

In addition it picks up the second field of the property which is the size
(with prop += naddr) rather than the first which is the address.

Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/fdt_support.c