]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spidev: Warn loudly if instantiated from DT as "spidev"
authorMark Brown <broonie@kernel.org>
Fri, 27 Mar 2015 23:36:04 +0000 (16:36 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 27 Mar 2015 23:43:03 +0000 (16:43 -0700)
commit1e496dfbe8f63d1149bb27935727a8c13a617b0f
tree42f7f8884b88991736c0ce3a09a3f3381d7a8a82
parent5cd9264af5a637be174b9b7f32965e8434ae4afd
spi: spidev: Warn loudly if instantiated from DT as "spidev"

Since spidev is a detail of how Linux controls a device rather than a
description of the hardware in the system we should never have a node
described as "spidev" in DT, any SPI device could be a spidev so this
is just not a useful description.

In order to help prevent users from writing such device trees generate a
warning if spidev is instantiated as a DT node without an ID in the match
table.

Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spidev.c