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>
  • Loading branch information
Stefan Christ authored and varphone committed Aug 14, 2019
1 parent 6f18dbb commit 35c8656
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 @@ -669,6 +669,8 @@ static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "lineartechnology,ltc2488" },
{ .compatible = "ge,achc" },
{ .compatible = "semtech,sx1301" },
/* avoids warning "buggy DT: spidev listed directly in DT" */
{ .compatible = "spidev" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);
Expand Down

0 comments on commit 35c8656

Please sign in to comment.