mtd/drivers/mtd mtdchar.c,1.72,1.73

gleixner at infradead.org gleixner at infradead.org
Mon Jul 4 13:36:44 EDT 2005


Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv23473

Modified Files:
	mtdchar.c 
Log Message:
[MTD] mtdchar: Return the real error code when create_class() failed

Signed-Off-By: Coywolf Qi Hunt <coywolf at sosdg.org>



Index: mtdchar.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdchar.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- mtdchar.c	30 Jun 2005 00:23:24 -0000	1.72
+++ mtdchar.c	4 Jul 2005 17:36:41 -0000	1.73
@@ -649,7 +649,7 @@
 	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(&notifier);





More information about the linux-mtd-cvs mailing list