Skip to content

Commit

Permalink
Revert "spi: spidev: Warn loudly if instantiated from DT as "spidev""
Browse files Browse the repository at this point in the history
This reverts commit 956b200.
  • Loading branch information
RobertCNelson committed Mar 20, 2017
1 parent cb31389 commit f5bdda3
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 @@ -713,11 +713,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));
// }

/* Allocate driver data */
spidev = kzalloc(sizeof(*spidev), GFP_KERNEL);
Expand Down

0 comments on commit f5bdda3

Please sign in to comment.