[MTD] add get_mtd_device_nm() function