Skip to content

Commit

Permalink
mtd: s3c2410: Use pr_* instead of printk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and David Woodhouse committed Sep 29, 2012
1 parent 056fcab commit 92aeb5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/mtd/nand/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 92aeb5d

Please sign in to comment.