spi: Correct device tree usage in spi_flash_decode_fdt()
authorSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 02:43:54 +0000 (19:43 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 03:42:35 +0000 (20:42 -0700)
commitd178a1c5b2b3d47a6380b7990a8a3f44b1cafe24
tree9456fc37aca1f48be78aee37bd140b0efe9563ab
parent4082fce92498a64e5e543ad53a1ed5a5c02a64d1
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>
drivers/mtd/spi/spi_flash.c