mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported