mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 23:47:16 +00:00
arch: cxd56xx: Fix a warning in cxd56_serial.c
Fix a warning by -Wunused-function when CONFIG_UART2_SERIAL_CONSOLE=y.
This commit is contained in:
parent
700610e625
commit
134424da18
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ static inline void up_enablebreaks(struct up_dev_s *priv, bool enable)
|
|||
* Name: cxd56_serial2_pm_event
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_CXD56_UART2
|
||||
#if defined(CONFIG_CXD56_UART2) && !defined(CONFIG_UART2_SERIAL_CONSOLE)
|
||||
static int cxd56_serial2_pm_event(uint8_t id)
|
||||
{
|
||||
struct up_dev_s *priv = (struct up_dev_s *)&g_uart2priv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue