mtd: fix the conversion from dev to mtd_info