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>
Reviewed-by: Yunus Bas <y.bas@phytec.de>
  • Loading branch information
Stefan Christ authored and FauliSchlumpf committed Apr 27, 2022
1 parent c7caebc commit 1bbed2a
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 @@ -696,6 +696,8 @@ static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "menlo,m53cpld" },
{ .compatible = "cisco,spi-petra" },
{ .compatible = "micron,spi-authenta" },
/* avoids warning "buggy DT: spidev listed directly in DT" */
{ .compatible = "spidev" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);
Expand Down

0 comments on commit 1bbed2a

Please sign in to comment.