aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdchar.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-03-15 06:59:36 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-04-05 08:15:38 -0400
commit57ae2b609f9338875daf269146f89c176831232c (patch)
tree013d8e59bc69079584e7cec8161578851e45fb49 /drivers/mtd/mtdchar.c
parent93e562141ac58452bcea48718af92cc62a20669d (diff)
mtd: mtdchar: use proper kernel print level
We normally use 'pr_err()' for error messages, not 'pr_notice()'. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r--drivers/mtd/mtdchar.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index c2b6729da496..c7292528c7bb 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -1249,16 +1249,18 @@ static int __init init_mtdchar(void)
1249 ret = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, 1249 ret = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS,
1250 "mtd", &mtd_fops); 1250 "mtd", &mtd_fops);
1251 if (ret < 0) { 1251 if (ret < 0) {
1252 pr_notice("Can't allocate major number %d for " 1252 pr_err("Can't allocate major number %d for MTD\n",
1253 "Memory Technology Devices.\n", MTD_CHAR_MAJOR); 1253 MTD_CHAR_MAJOR);
1254 return ret; 1254 return ret;
1255 } 1255 }
1256 1256
1257 ret = register_filesystem(&mtd_inodefs_type); 1257 ret = register_filesystem(&mtd_inodefs_type);
1258 if (ret) { 1258 if (ret) {
1259 pr_notice("Can't register mtd_inodefs filesystem: %d\n", ret); 1259 pr_err("Can't register mtd_inodefs filesystem, error %d\n",
1260 ret);
1260 goto err_unregister_chdev; 1261 goto err_unregister_chdev;
1261 } 1262 }
1263
1262 return ret; 1264 return ret;
1263 1265
1264err_unregister_chdev: 1266err_unregister_chdev: