Skip to content
Commit d178a1c5 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 4082fce9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment