From: Ezequiel Garcia Date: Tue, 12 Feb 2013 19:22:23 +0000 (-0300) Subject: ARM: omap2: gpmc-onenand: Replace printk KERN_ERR with dev_warn() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ab91596a55e05410fcaab6d7d066ce0e0d0a712;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ARM: omap2: gpmc-onenand: Replace printk KERN_ERR with dev_warn() Since the condition is not an error but a warning, replace printk KERN_ERR with dev_warn. Signed-off-by: Ezequiel Garcia Reviewed-by: Jon Hunter Signed-off-by: Jon Hunter --- diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach-omap2/gpmc-onenand.c index a78921169210..4c917522d248 100644 --- a/arch/arm/mach-omap2/gpmc-onenand.c +++ b/arch/arm/mach-omap2/gpmc-onenand.c @@ -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; }