23 #include <linux/slab.h>
26 #include <linux/module.h>
33 if (
mtd_read(dev->
mtd, (block * 512), 512, &retlen, buf))
39 unsigned long block,
char *buf)
43 if (
mtd_write(dev->
mtd, (block * 512), 512, &retlen, buf))
76 .readsect = mtdblock_readsect,
77 .writesect = mtdblock_writesect,
78 .add_mtd = mtdblock_add_mtd,
79 .remove_dev = mtdblock_remove_dev,
83 static int __init mtdblock_init(
void)
88 static void __exit mtdblock_exit(
void)