Replace pr_info with dev_info when appropriate device structure
is present

Signed-off-by: Shraddha Barke <shraddha.6...@gmail.com>
---
 drivers/staging/fbtft/fbtft_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/fbtft/fbtft_device.c 
b/drivers/staging/fbtft/fbtft_device.c
index fa916e8..3f2c69c 100644
--- a/drivers/staging/fbtft/fbtft_device.c
+++ b/drivers/staging/fbtft/fbtft_device.c
@@ -1222,7 +1222,7 @@ static int spi_device_found(struct device *dev, void 
*data)
 {
        struct spi_device *spi = container_of(dev, struct spi_device, dev);
 
-       pr_info(DRVNAME":      %s %s %dkHz %d bits mode=0x%02X\n",
+       dev_info(dev, DRVNAME":      %s %s %dkHz %d bits mode=0x%02X\n",
                spi->modalias, dev_name(dev), spi->max_speed_hz/1000,
                spi->bits_per_word, spi->mode);
 
@@ -1241,7 +1241,7 @@ static int p_device_found(struct device *dev, void *data)
        *pdev = container_of(dev, struct platform_device, dev);
 
        if (strstr(pdev->name, "fb"))
-               pr_info(DRVNAME":      %s id=%d pdata? %s\n",
+               dev_info(dev, DRVNAME":      %s id=%d pdata? %s\n",
                                pdev->name, pdev->id,
                                pdev->dev.platform_data ? "yes" : "no");
 
-- 
2.1.4

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to