From 4494a2a501fa715ccd5db70948d8c8e6aa3268fc Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 17 Mar 2021 08:06:30 +0900 Subject: [PATCH] boards/arm/samv7/samv71-xult/src/sam_bringup.c: CONFIG_BCH --- boards/arm/samv7/samv71-xult/src/sam_bringup.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boards/arm/samv7/samv71-xult/src/sam_bringup.c b/boards/arm/samv7/samv71-xult/src/sam_bringup.c index 67b60c6a46..903b06d2ff 100644 --- a/boards/arm/samv7/samv71-xult/src/sam_bringup.c +++ b/boards/arm/samv7/samv71-xult/src/sam_bringup.c @@ -187,8 +187,10 @@ int sam_bringup(void) FAR struct i2c_master_s *i2c; #endif #if defined(HAVE_S25FL1_CHARDEV) || defined(HAVE_PROGMEM_CHARDEV) +#if defined(CONFIG_BCH) char blockdev[18]; char chardev[12]; +#endif /* defined(CONFIG_BCH) */ #endif int ret; @@ -430,6 +432,7 @@ int sam_bringup(void) return ret; } +#if defined(CONFIG_BCH) /* Use the minor number to create device paths */ snprintf(blockdev, 18, "/dev/mtdblock%d", S25FL1_MTD_MINOR); @@ -444,6 +447,7 @@ int sam_bringup(void) chardev, ret); return ret; } +#endif /* defined(CONFIG_BCH) */ #endif } #endif @@ -471,6 +475,7 @@ int sam_bringup(void) return ret; } +#if defined(CONFIG_BCH) /* Use the minor number to create device paths */ snprintf(blockdev, 18, "/dev/mtdblock%d", PROGMEM_MTD_MINOR); @@ -485,6 +490,7 @@ int sam_bringup(void) chardev, ret); return ret; } +#endif /* defined(CONFIG_BCH) */ #endif #ifdef HAVE_USBHOST