mtd: spi: Use CONFIG_IS_ENABLED to prevent ifdef