mtd =get_mtd_device(NULL, devnum);if(IS_ERR(mtd))returnPTR_ERR(mtd);if(MTD_ABSENT == mtd->type) { put_mtd_device(mtd);return-ENODEV; }/* You can't open it RW if it's not a writeable device */if((file->f_mode &2) && !(mtd->flags & MTD_WRITEABLE)) { put_mtd_device...