commit | 29f304bbc0f5bf0bfe2a3e5839819e455c2df459 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Jul 04 13:31:20 2017 -0600 |
committer | Jaehoon Chung <jh80.chung@samsung.com> | Tue Aug 01 11:58:00 2017 +0900 |
tree | 71816afa953a4aff86ba66589e19cad6ce284ca7 | |
parent | 5f4bd8c5f9332aaa9ad227d3b72bac80187ea798 [diff] |
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>