Skip to content

Commit

Permalink
NFM: spi: spidev: allow use of spidev in DT
Browse files Browse the repository at this point in the history
This reverts commit 956b200.

Signed-off-by: Robert Nelson <[email protected]>
  • Loading branch information
RobertCNelson committed Jan 28, 2020
1 parent 12ca533 commit 0be7bc5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/spi/spidev.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,11 +724,11 @@ static int spidev_probe(struct spi_device *spi)
* compatible string, it is a Linux implementation thing
* rather than a description of the hardware.
*/
if (spi->dev.of_node && !of_match_device(spidev_dt_ids, &spi->dev)) {
dev_err(&spi->dev, "buggy DT: spidev listed directly in DT\n");
WARN_ON(spi->dev.of_node &&
!of_match_device(spidev_dt_ids, &spi->dev));
}
// if (spi->dev.of_node && !of_match_device(spidev_dt_ids, &spi->dev)) {
// dev_err(&spi->dev, "buggy DT: spidev listed directly in DT\n");
// WARN_ON(spi->dev.of_node &&
// !of_match_device(spidev_dt_ids, &spi->dev));
// }

spidev_probe_acpi(spi);

Expand Down

0 comments on commit 0be7bc5

Please sign in to comment.