Skip to content

Commit

Permalink
spi: spidev: Completely disable the spidev warning
Browse files Browse the repository at this point in the history
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 <phil@raspberrypi.org>
  • Loading branch information
popcornmix committed Feb 10, 2025
1 parent 4f126ec commit b84a16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spidev.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
*/
static int spidev_of_check(struct device *dev)
{
if (device_property_match_string(dev, "compatible", "spidev") < 0)
if (1 || device_property_match_string(dev, "compatible", "spidev") < 0)
return 0;

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

0 comments on commit b84a16c

Please sign in to comment.