From e38018be3e7c03dd7e8f4ab0e1d55407cebbf89d Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 27 Jul 2010 08:16:05 +0100 Subject: [PATCH] serial: max3107: Fix gpiolib support Because of the way gpiolib works we actually need to ifdef this in our header file Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- drivers/serial/max3107.h | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5