Skip to content

Commit

Permalink
spidev: avoid warning when used directly in device tree
Browse files Browse the repository at this point in the history
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 <s.christ@phytec.de>
Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: Jan Remmet <j.remmet@phytec.de>
Signed-off-by: Yunus Bas <y.bas@phytec.de>
Signed-off-by: Andrej Picej <andrej.picej@norik.com>
  • Loading branch information
Stefan Christ authored and FauliSchlumpf committed May 22, 2024
1 parent 21f5fec commit 40114f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/spi/spidev.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,8 @@ static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "semtech,sx1301", .data = &spidev_of_check },
{ .compatible = "silabs,em3581", .data = &spidev_of_check },
{ .compatible = "silabs,si3210", .data = &spidev_of_check },
/* avoids warning "buggy DT: spidev listed directly in DT" */
{ .compatible = "spidev" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);
Expand Down

0 comments on commit 40114f8

Please sign in to comment.