[PATCH 2/5] mtd: nand: change return type of nand_get_flash_type() to int