samv7/adc: always increase initialization counter when adc_setup called

This commit is contained in:
raiden00pl 2023-10-02 14:14:30 +02:00 committed by Xiang Xiao
parent cf4b8dbfa3
commit c93c0ecd81

View file

@ -868,6 +868,7 @@ static int afec_setup(struct adc_dev_s *dev)
if (priv->initialized > 0)
{
priv->initialized++;
return OK;
}