From e5a26ed98c6959bee193b046f300daee7c3dcf80 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 20 Jan 2012 17:27:06 +0000 Subject: [PATCH] Fix some warnings git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4318 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/configs/stm3210e-eval/src/up_adc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nuttx/configs/stm3210e-eval/src/up_adc.c b/nuttx/configs/stm3210e-eval/src/up_adc.c index f2a6cec847..6b1a8cb50e 100644 --- a/nuttx/configs/stm3210e-eval/src/up_adc.c +++ b/nuttx/configs/stm3210e-eval/src/up_adc.c @@ -40,6 +40,7 @@ #include +#include #include #include @@ -137,7 +138,7 @@ int adc_devinit(void) if (adc == NULL) { adbg("ERROR: Failed to get ADC interface\n"); - return; + return -ENODEV; } /* Register the ADC driver at "/dev/adc0" */ @@ -161,4 +162,4 @@ int adc_devinit(void) } #endif /* CONFIG_STM32_ADC1 || CONFIG_STM32_ADC2 || CONFIG_STM32_ADC3 */ -#endif /* CONFIG_ADC */ \ No newline at end of file +#endif /* CONFIG_ADC */