Skip to content

Commit 32fca82

Browse files
committed
spi: spidev: Completely disable the spidev warning
An alternative strategy would be to use "rpi,spidev" instead, but that would require many Raspberry Pi Device Tree changes. Signed-off-by: Phil Elwell <[email protected]>
1 parent b92588d commit 32fca82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spidev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
721721
*/
722722
static int spidev_of_check(struct device *dev)
723723
{
724-
if (device_property_match_string(dev, "compatible", "spidev") < 0)
724+
if (1 || device_property_match_string(dev, "compatible", "spidev") < 0)
725725
return 0;
726726

727727
dev_err(dev, "spidev listed directly in DT is not supported\n");

0 commit comments

Comments
 (0)