diff --git a/include/nuttx/ioexpander/gpio.h b/include/nuttx/ioexpander/gpio.h index 30dde6f96ee..27116e76b0a 100644 --- a/include/nuttx/ioexpander/gpio.h +++ b/include/nuttx/ioexpander/gpio.h @@ -49,6 +49,8 @@ #include #include +#ifdef CONFIG_DEV_GPIO + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -246,4 +248,5 @@ int gpio_lower_half(FAR struct ioexpander_dev_s *ioe, unsigned int pin, } #endif +#endif /* CONFIG_DEV_GPIO */ #endif /* __INCLUDE_NUTTX_IOEXPANDER_GPIO_H */