bcm27xx: update patches from RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0011-spi-spidev-Completely-disable-the-spidev-warning.patch
1 From f828923b460216a0b6bb0b12879731f4b336c3db Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Tue, 14 Jul 2015 10:26:09 +0100
4 Subject: [PATCH] spi: spidev: Completely disable the spidev warning
5
6 An alternative strategy would be to use "rpi,spidev" instead, but that
7 would require many Raspberry Pi Device Tree changes.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 ---
11 drivers/spi/spidev.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/drivers/spi/spidev.c
15 +++ b/drivers/spi/spidev.c
16 @@ -729,7 +729,7 @@ static int spidev_probe(struct spi_devic
17 * compatible string, it is a Linux implementation thing
18 * rather than a description of the hardware.
19 */
20 - WARN(spi->dev.of_node &&
21 + WARN(0 && spi->dev.of_node &&
22 of_device_is_compatible(spi->dev.of_node, "spidev"),
23 "%pOF: buggy DT: spidev listed directly in DT\n", spi->dev.of_node);
24