Trivial changes from review of last PR.

This commit is contained in:
Gregory Nutt
2017-03-25 10:38:41 -06:00
parent c174074dd8
commit 7d57a2b2bd
5 changed files with 13 additions and 7 deletions
+4
View File
@@ -86,6 +86,8 @@ int stm32_comp_setup(void)
if (!initialized)
{
/* Get the comparator interface */
#ifdef CONFIG_STM32_COMP2
comp = stm32_compinitialize(2);
if (comp == NULL)
@@ -113,6 +115,8 @@ int stm32_comp_setup(void)
}
#endif
/* Register the comparator character driver at /dev/comp0 */
ret = comp_register("/dev/comp0", comp);
if (ret < 0)
{