spi: Mark instantiated device nodes with OF_POPULATE
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 30 Nov 2015 14:28:07 +0000 (15:28 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 1 Dec 2015 18:52:20 +0000 (18:52 +0000)
commitbd6c1644a2f6f46cdf89388e81168a70711fce3a
tree99f2cbbdffc782f170312d07c170269f39465cdb
parent3b1884c24c98dada51fc4b05735773f0078711d2
spi: Mark instantiated device nodes with OF_POPULATE

Mark (and unmark) device nodes with the POPULATE flag as appropriate.
This is required to avoid multi probing when enabling and populating SPI
buses in DT overlays.

Based on commit 4f001fd30145a6a8 ("i2c: Mark instantiated device nodes
with OF_POPULATE").

Suggested-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c