From 1b817cc6d649e69c7cb65a0eb15c3320cbc52c16 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 27 Jul 2012 21:08:56 +0000 Subject: [PATCH] STM32F4Discovery configuration clean-up git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4985 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/stm32/stm32_serial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/stm32/stm32_serial.c b/arch/arm/src/stm32/stm32_serial.c index e1d6e45938..01c519b399 100644 --- a/arch/arm/src/stm32/stm32_serial.c +++ b/arch/arm/src/stm32/stm32_serial.c @@ -1218,7 +1218,9 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) { struct inode *inode = filep->f_inode; struct uart_dev_s *dev = inode->i_private; +#ifdef CONFIG_SERIAL_TERMIOS struct up_dev_s *priv = (struct up_dev_s*)dev->priv; +#endif int ret = OK; switch (cmd)