Skip to content

Commit af4898d

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 b5a42a8 commit af4898d

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
@@ -727,7 +727,7 @@ MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
727727
*/
728728
static int spidev_of_check(struct device *dev)
729729
{
730-
if (device_property_match_string(dev, "compatible", "spidev") < 0)
730+
if (1 || device_property_match_string(dev, "compatible", "spidev") < 0)
731731
return 0;
732732

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

0 commit comments

Comments
 (0)