commit | 37ef3254399c9bbce4da5bee3133c665db9780a2 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Nov 11 10:46:20 2014 -0700 |
committer | Simon Glass <sjg@chromium.org> | Sat Nov 22 10:16:47 2014 +0100 |
tree | 9c59ee715a5c1e2b9efe0453a71f65041e631eaf | |
parent | 43f488aee92be6db48245b428d6374643d966025 [diff] |
dm: fdt: Correct handling of aliases with embedded digits Since we scan from left to right looking for the first digit, "i2c0" returns 2 instead of 0 for the alias number. Adjust the code to scan from right to left instead. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> Reviewed-by: Tom Rini <trini@ti.com>