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>
  • Loading branch information
Stefan Christ authored and FauliSchlumpf committed Nov 2, 2021
1 parent 2d011fa commit 6d8d032
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 @@ -682,6 +682,8 @@ static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "lwn,bk4" },
{ .compatible = "dh,dhcom-board" },
{ .compatible = "menlo,m53cpld" },
/* avoids warning "buggy DT: spidev listed directly in DT" */
{ .compatible = "spidev" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);
Expand Down

0 comments on commit 6d8d032

Please sign in to comment.