[MTD] return error code from get_mtd_device()