ARM: omap2: gpmc-onenand: Replace printk KERN_ERR with dev_warn()
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 12 Feb 2013 19:22:23 +0000 (16:22 -0300)
committerJon Hunter <jon-hunter@ti.com>
Mon, 1 Apr 2013 19:53:39 +0000 (14:53 -0500)
Since the condition is not an error but a warning, replace
printk KERN_ERR with dev_warn.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Reviewed-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
arch/arm/mach-omap2/gpmc-onenand.c

index a789211..4c91752 100644 (file)
@@ -367,7 +367,7 @@ void gpmc_onenand_init(struct omap_onenand_platform_data *_onenand_data)
 
        if (cpu_is_omap24xx() &&
                        (gpmc_onenand_data->flags & ONENAND_SYNC_READWRITE)) {
-               printk(KERN_ERR "Onenand using only SYNC_READ on 24xx\n");
+               dev_warn(dev, "OneNAND using only SYNC_READ on 24xx\n");
                gpmc_onenand_data->flags &= ~ONENAND_SYNC_READWRITE;
                gpmc_onenand_data->flags |= ONENAND_SYNC_READ;
        }