[media] s3c-camif: Use dev_info instead of printk
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 30 Apr 2013 05:16:21 +0000 (02:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Jun 2013 00:37:01 +0000 (21:37 -0300)
dev_info is preferred to printk. Silences the related checkpatch
warning.
WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ...
then pr_info(...  to printk(KERN_INFO ...

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s3c-camif/camif-regs.c

index 7b22d6c4613b378f6fd3d1dfaf9cca32a4fb5e75..a9e3b16460b8a3b55e90ea9327210460d52e45d1 100644 (file)
@@ -601,6 +601,6 @@ void camif_hw_dump_regs(struct camif_dev *camif, const char *label)
        pr_info("--- %s ---\n", label);
        for (i = 0; i < ARRAY_SIZE(registers); i++) {
                u32 cfg = readl(camif->io_base + registers[i].offset);
-               printk(KERN_INFO "%s:\t0x%08x\n", registers[i].name, cfg);
+               dev_info(camif->dev, "%s:\t0x%08x\n", registers[i].name, cfg);
        }
 }