projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bc7b38
)
[MTD] mtdchar: Return the real error code when create_class() failed
author
Coywolf Qi Hunt
<coywolf@sosdg.org>
Mon, 4 Jul 2005 17:15:28 +0000
(12:15 -0500)
committer
Thomas Gleixner
<tglx@mtd.linutronix.de>
Mon, 4 Jul 2005 18:49:54 +0000
(20:49 +0200)
Signed-off-by: Coywolf Qi Hunt <coywolf@sosdg.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/mtdchar.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/mtdchar.c
b/drivers/mtd/mtdchar.c
index b606f811eeb4fc9ad3227b5474fe1d565a6dc012..1ed602a0f24cb617fd06cc27fd70d72399380b67 100644
(file)
--- a/
drivers/mtd/mtdchar.c
+++ b/
drivers/mtd/mtdchar.c
@@
-1,5
+1,5
@@
/*
- * $Id: mtdchar.c,v 1.7
2 2005/06/30 00:23:24 tpoyno
r Exp $
+ * $Id: mtdchar.c,v 1.7
3 2005/07/04 17:36:41 gleixne
r Exp $
*
* Character-device access to raw MTD devices.
*
@@
-649,7
+649,7
@@
static int __init init_mtdchar(void)
if (IS_ERR(mtd_class)) {
printk(KERN_ERR "Error creating mtd class.\n");
unregister_chrdev(MTD_CHAR_MAJOR, "mtd");
- return
1
;
+ return
PTR_ERR(mtd_class)
;
}
register_mtd_user(¬ifier);