]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/serial/max3107.h
serial: max3107: Fix gpiolib support
[net-next-2.6.git] / drivers / serial / max3107.h
index 72b30415f4179dc6e5b629642e8fc75299376835..7ab6323925026920c1e30e17d49f68100da33490 100644 (file)
@@ -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;