Skip to content

Commit 6940cc3

Browse files
Stefan ChristFauliSchlumpf
Stefan Christ
authored andcommitted
spidev: avoid warning when used directly in device tree
Avoid warning [ 2.991522] spidev spi2.2: buggy DT: spidev listed directly in DT when using spidev in device tree. See raspberrypi/linux#1054 Signed-off-by: Stefan Christ <[email protected]> Signed-off-by: Stefan Riedmueller <[email protected]> Signed-off-by: Jan Remmet <[email protected]> Signed-off-by: Yunus Bas <[email protected]> Signed-off-by: Andrej Picej <[email protected]> Reviewed-by: Yunus Bas <[email protected]>
1 parent 3a456e4 commit 6940cc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/spi/spidev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ static const struct of_device_id spidev_dt_ids[] = {
705705
{ .compatible = "menlo,m53cpld" },
706706
{ .compatible = "cisco,spi-petra" },
707707
{ .compatible = "micron,spi-authenta" },
708+
/* avoids warning "buggy DT: spidev listed directly in DT" */
709+
{ .compatible = "spidev" },
708710
{},
709711
};
710712
MODULE_DEVICE_TABLE(of, spidev_dt_ids);

0 commit comments

Comments
 (0)