diff --git a/drivers/ioexpander/pcf8574.c b/drivers/ioexpander/pcf8574.c index 56baaa7e8a..01d5e9e75a 100644 --- a/drivers/ioexpander/pcf8574.c +++ b/drivers/ioexpander/pcf8574.c @@ -776,7 +776,7 @@ static FAR void *pcf8574_attach(FAR struct ioexpander_dev_s *dev, * 0 on success, else a negative error code * ****************************************************************************/ - +#ifdef CONFIG_PCF8574_INT_ENABLE static int pcf8574_detach(FAR struct ioexpander_dev_s *dev, FAR void *handle) { FAR struct pcf8574_dev_s *priv = (FAR struct pcf8574_dev_s *)dev; @@ -792,6 +792,7 @@ static int pcf8574_detach(FAR struct ioexpander_dev_s *dev, FAR void *handle) cb->cbarg = NULL; return OK; } +#endif /**************************************************************************** * Name: pcf8574_int_update