/* Simple read-only (writable only for RAM) mtdblock driver  */
static int mtdblock_readsect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf)
/* Simple read-only (writable only for RAM) mtdblock driver  */
static int mtdblock_readsect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf)
{
	size_t retlen;
	if (dev->mtd->read(dev->mtd, (block * 512), 512, &retlen, buf))
		return 1;
	return 0;
}