Commit 67b19a63 authored by Jingoo Han's avatar Jingoo Han Committed by Brian Norris

mtd: fsmc_nand: use dev_warn() instead of printk()

Use dev_warn() instead of printk() to provide a better message
to userspace.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 1295f970
...@@ -1104,8 +1104,8 @@ static int __init fsmc_nand_probe(struct platform_device *pdev) ...@@ -1104,8 +1104,8 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
host->ecc_place = &fsmc_ecc4_lp_place; host->ecc_place = &fsmc_ecc4_lp_place;
break; break;
default: default:
printk(KERN_WARNING "No oob scheme defined for " dev_warn(&pdev->dev, "No oob scheme defined for oobsize %d\n",
"oobsize %d\n", mtd->oobsize); mtd->oobsize);
BUG(); BUG();
} }
} else { } else {
...@@ -1120,8 +1120,8 @@ static int __init fsmc_nand_probe(struct platform_device *pdev) ...@@ -1120,8 +1120,8 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
nand->ecc.layout = &fsmc_ecc1_128_layout; nand->ecc.layout = &fsmc_ecc1_128_layout;
break; break;
default: default:
printk(KERN_WARNING "No oob scheme defined for " dev_warn(&pdev->dev, "No oob scheme defined for oobsize %d\n",
"oobsize %d\n", mtd->oobsize); mtd->oobsize);
BUG(); BUG();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment