Skip to contentSkip to conversation

max3107: Fix gpiolib support

PATCH RESEND In review Alan Cox 2 participants 2 messages Jul 27, 2010 TTY layer and serial drivers

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH RESEND 1/1 max3107: Fix gpiolib support

Because of the way gpiolib works we actually need to ifdef this in our header file

---

 drivers/serial/max3107.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/serial/max3107.h +2 -0
index 72b3041..7ab6323 100644
@@ -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;
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Alan Cox

Because of the way gpiolib works we actually need to ifdef this in our header file

Thanks.

Quoted 23 lines

---

 drivers/serial/max3107.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/serial/max3107.h +2 -1
index 72b3041..7ab6323 100644
@@ -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;
 
--