media: ddbridge: dev_* logging fixup
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 25 Jun 2017 09:59:46 +0000 (06:59 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 25 Jun 2017 12:04:51 +0000 (09:04 -0300)
Fixup

  commit d52786ddd2d5 ("media: ddbridge: make (ddb)readl in while-loops fail-safe")

after/wrt

  commit 11e358bf37e8 ("media: ddbridge: use dev_* macros in favor of printk")

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ddbridge/ddbridge-core.c

index c5745ae2ba5e64a50871cf0ca70a153eafcf6172..32f4d3746c8eaf54929b4dccb4a754db52614d17 100644 (file)
@@ -122,7 +122,7 @@ static inline u32 safe_ddbreadl(struct ddb *dev, u32 adr)
 
        /* (ddb)readl returns (uint)-1 (all bits set) on failure, catch that */
        if (val == ~0) {
-               printk(KERN_ERR "ddbreadl failure, adr=%08x\n", adr);
+               dev_err(&dev->pdev->dev, "ddbreadl failure, adr=%08x\n", adr);
                return 0;
        }