From: Sachin Kamat Date: Mon, 16 Jul 2012 10:32:23 +0000 (+0530) Subject: mtd: s3c2410: Use pr_* instead of printk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=92aeb5d20c188fc7c28d7a5895a6b2f56038a2bd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mtd: s3c2410: Use pr_* instead of printk Use pr_* instead of printk. Signed-off-by: Sachin Kamat Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 8f9267fe29fd..3021b174761f 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -21,6 +21,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define pr_fmt(fmt) "nand-s3c2410: " fmt + #ifdef CONFIG_MTD_NAND_S3C2410_DEBUG #define DEBUG #endif @@ -215,7 +217,8 @@ static int s3c_nand_calc_rate(int wanted, unsigned long clk, int max) pr_debug("result %d from %ld, %d\n", result, clk, wanted); if (result > max) { - printk("%d ns is too big for current clock rate %ld\n", wanted, clk); + pr_err("%d ns is too big for current clock rate %ld\n", + wanted, clk); return -1; }