Skip to content

Commit d7e05f7

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 f4f3af8 commit d7e05f7

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

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

0 commit comments

Comments
 (0)