mtd/drivers/mtd mtdchar.c,1.77,1.78
Artem Bityutskiy
dedekind at infradead.org
Tue Dec 27 09:44:05 EST 2005
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv16288/drivers/mtd
Modified Files:
mtdchar.c
Log Message:
[MTD] Fix compilation error.
The mtd_class_device_create() does not exist, use call class_device_create()
instead. The error was occasionally introduced by the previous commit.
Index: mtdchar.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdchar.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- mtdchar.c 14 Dec 2005 16:41:54 -0000 1.77
+++ mtdchar.c 27 Dec 2005 14:44:02 -0000 1.78
@@ -32,16 +32,16 @@
* In 2.6.13 and 2.6.14 kernels class_device_create() had different prototype.
* No idea how to fix it in compatmac.h, so this is a hotfix. Must go sometime.
*/
- mtd_class_device_create(mtd_class, MKDEV(MTD_CHAR_MAJOR, mtd->index*2),
+ class_device_create(mtd_class, MKDEV(MTD_CHAR_MAJOR, mtd->index*2),
NULL, "mtd%d", mtd->index);
- mtd_class_device_create(mtd_class, MKDEV(MTD_CHAR_MAJOR, mtd->index*2+1),
+ class_device_create(mtd_class, MKDEV(MTD_CHAR_MAJOR, mtd->index*2+1),
NULL, "mtd%dro", mtd->index);
#else
- mtd_class_device_create(mtd_class, NULL, MKDEV(MTD_CHAR_MAJOR, mtd->index*2),
+ class_device_create(mtd_class, NULL, MKDEV(MTD_CHAR_MAJOR, mtd->index*2),
NULL, "mtd%d", mtd->index);
- mtd_class_device_create(mtd_class, NULL,
+ class_device_create(mtd_class, NULL,
MKDEV(MTD_CHAR_MAJOR, mtd->index*2+1),
NULL, "mtd%dro", mtd->index);
#endif
More information about the linux-mtd-cvs
mailing list