summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/max3107.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/max3107.h b/drivers/serial/max3107.h
index 72b30415f417..7ab632392502 100644
--- a/drivers/serial/max3107.h
+++ b/drivers/serial/max3107.h
@@ -368,8 +368,10 @@ struct max3107_port {
/* SPI device structure */
struct spi_device *spi;
+#if defined(CONFIG_GPIOLIB)
/* GPIO chip stucture */
struct gpio_chip chip;
+#endif
/* Workqueue that does all the magic */
struct workqueue_struct *workqueue;