arch/esp32c3: Fix the compiler error in esp32c3_spi.c

which is made by:
commit 87a1f69a3c
Author: Alan Carvalho de Assis <acassis@gmail.com>
Date:   Fri Dec 16 15:23:39 2022 -0300

    Modify the IRQ APIs to be compatible with ESP32/S2/S3

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-31 06:39:44 +08:00 committed by Petro Karashchenko
parent cc9166274a
commit d3872e0479
1 changed files with 1 additions and 1 deletions

View File

@ -1456,7 +1456,7 @@ int esp32c3_spibus_uninitialize(struct spi_dev_s *dev)
#ifdef CONFIG_ESP32C3_SPI2_DMA
up_disable_irq(priv->config->irq);
esp32c3_free_cpuint(priv->config->periph, priv->cpuint);
esp32c3_teardown_irq(priv->config->periph, priv->cpuint);
priv->cpuint = -ENOMEM;
#endif