commit | d178a1c5b2b3d47a6380b7990a8a3f44b1cafe24 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Jan 21 19:43:54 2016 -0700 |
committer | Simon Glass <sjg@chromium.org> | Thu Jan 21 20:42:35 2016 -0700 |
tree | 9456fc37aca1f48be78aee37bd140b0efe9563ab | |
parent | 4082fce92498a64e5e543ad53a1ed5a5c02a64d1 [diff] |
spi: Correct device tree usage in spi_flash_decode_fdt() This function currently searches the entire device tree for a node that it thinks is relevant. But the node is known and is passed in. Correct the code and enable it only with driver model, since only driver-model boards will use it. This avoids bringing in a large number of strings from fdtdec. Signed-off-by: Simon Glass <sjg@chromium.org>