dev_dbg() is more appropriate for printing debug messages inside drivers, so switch to dev_dbg(). Signed-off-by: Fabio Estevam <festevam@xxxxxxxxx> --- drivers/spi/spidev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 255786f2e844..0ea67ef3e65c 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -560,7 +560,8 @@ static int spidev_open(struct inode *inode, struct file *filp) } if (status) { - pr_debug("spidev: nothing for minor %d\n", iminor(inode)); + dev_dbg(&spidev->spi->dev, "spidev: nothing for minor %d\n", + iminor(inode)); goto err_find_dev; } -- 2.17.1