From 8143563be6ca1c41b1dd5aaed24cf9a22e262cac Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 15 Jul 2017 12:33:10 -0600 Subject: [PATCH] Spark: Need to condition out MSC logic in composite setup if there is no MSC in the composite. --- configs/spark/src/stm32_composite.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configs/spark/src/stm32_composite.c b/configs/spark/src/stm32_composite.c index 7f9bb49524..06ddb88cc4 100644 --- a/configs/spark/src/stm32_composite.c +++ b/configs/spark/src/stm32_composite.c @@ -318,6 +318,7 @@ static int stm32_composite_initialize(void) * ****************************************************************************/ +#ifdef CONFIG_USBMSC_COMPOSITE static int board_mscclassobject(int minor, FAR struct usbdev_description_s *devdesc, FAR struct usbdevclass_driver_s **classdev) @@ -363,6 +364,7 @@ static int board_mscclassobject(int minor, return ret; } +#endif /**************************************************************************** * Name: board_mscuninitialize @@ -381,12 +383,14 @@ static int board_mscclassobject(int minor, * ****************************************************************************/ +#ifdef CONFIG_USBMSC_COMPOSITE void board_mscuninitialize(FAR struct usbdevclass_driver_s *classdev) { DEBUGASSERT(g_mschandle != NULL); usbmsc_uninitialize(g_mschandle); g_mschandle = NULL; } +#endif /**************************************************************************** * Public Functions