diff --git a/drivers/input/ads7843e.c b/drivers/input/ads7843e.c index f299c93afc..1217dc879f 100644 --- a/drivers/input/ads7843e.c +++ b/drivers/input/ads7843e.c @@ -1216,6 +1216,7 @@ int ads7843e_register(FAR struct spi_dev_s *spi, */ #ifdef CONFIG_ADS7843E_MULTIPLE + flags = enter_critical_section(); priv->flink = g_ads7843elist; g_ads7843elist = priv; leave_critical_section(flags);