mtd: fsmc_nand: use dev_warn() instead of printk()
authorJingoo Han <jg1.han@samsung.com>
Thu, 26 Dec 2013 03:31:25 +0000 (12:31 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 7 Jan 2014 18:07:03 +0000 (10:07 -0800)
Use dev_warn() instead of printk() to provide a better message
to userspace.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/fsmc_nand.c

index a5915f1172e672254976e21bb7f5e2fe75f4d798..1550692973dc2ebcaa6864bc3e2c51607872b818 100644 (file)
@@ -1104,8 +1104,8 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
                        host->ecc_place = &fsmc_ecc4_lp_place;
                        break;
                default:
-                       printk(KERN_WARNING "No oob scheme defined for "
-                              "oobsize %d\n", mtd->oobsize);
+                       dev_warn(&pdev->dev, "No oob scheme defined for oobsize %d\n",
+                                mtd->oobsize);
                        BUG();
                }
        } else {
@@ -1120,8 +1120,8 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
                        nand->ecc.layout = &fsmc_ecc1_128_layout;
                        break;
                default:
-                       printk(KERN_WARNING "No oob scheme defined for "
-                              "oobsize %d\n", mtd->oobsize);
+                       dev_warn(&pdev->dev, "No oob scheme defined for oobsize %d\n",
+                                mtd->oobsize);
                        BUG();
                }
        }