aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-07-16 06:32:23 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-09-29 09:56:03 -0400
commit92aeb5d20c188fc7c28d7a5895a6b2f56038a2bd (patch)
tree16de52e955b057c7a04f9bb44e994cf17e3acb3c /drivers
parent056fcab51c8a9e7735f5441efaa82d9201ac4d8d (diff)
mtd: s3c2410: Use pr_* instead of printk
Use pr_* instead of printk. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/s3c2410.c5
1 files changed, 4 insertions, 1 deletions
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 @@
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22*/ 22*/
23 23
24#define pr_fmt(fmt) "nand-s3c2410: " fmt
25
24#ifdef CONFIG_MTD_NAND_S3C2410_DEBUG 26#ifdef CONFIG_MTD_NAND_S3C2410_DEBUG
25#define DEBUG 27#define DEBUG
26#endif 28#endif
@@ -215,7 +217,8 @@ static int s3c_nand_calc_rate(int wanted, unsigned long clk, int max)
215 pr_debug("result %d from %ld, %d\n", result, clk, wanted); 217 pr_debug("result %d from %ld, %d\n", result, clk, wanted);
216 218
217 if (result > max) { 219 if (result > max) {
218 printk("%d ns is too big for current clock rate %ld\n", wanted, clk); 220 pr_err("%d ns is too big for current clock rate %ld\n",
221 wanted, clk);
219 return -1; 222 return -1;
220 } 223 }
221 224