diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-20 17:27:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-20 17:27:06 +0000 |
commit | 49c358953f0d1462456a666cdf141346884d655d (patch) | |
tree | 834d0374f72fe554f94e1ce30ceabdc0c602865d /nuttx/configs | |
parent | a89135e23145cd538db501fd5c8b60bc2fcd4cb3 (diff) | |
download | px4-nuttx-49c358953f0d1462456a666cdf141346884d655d.tar.gz px4-nuttx-49c358953f0d1462456a666cdf141346884d655d.tar.bz2 px4-nuttx-49c358953f0d1462456a666cdf141346884d655d.zip |
Fix some warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4318 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rw-r--r-- | nuttx/configs/stm3210e-eval/src/up_adc.c | 5 |
1 files 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 f2a6cec84..6b1a8cb50 100644 --- a/nuttx/configs/stm3210e-eval/src/up_adc.c +++ b/nuttx/configs/stm3210e-eval/src/up_adc.c @@ -40,6 +40,7 @@ #include <nuttx/config.h> +#include <errno.h> #include <debug.h> #include <nuttx/analog/adc.h> @@ -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 */ |