Commit e38018be3e7c03dd7e8f4ab0e1d55407cebbf89d

Authored by Alan Cox
Committed by Greg Kroah-Hartman
1 parent 3c4108c82f

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 <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/serial/max3107.h
... ... @@ -368,8 +368,10 @@
368 368 /* SPI device structure */
369 369 struct spi_device *spi;
370 370  
  371 +#if defined(CONFIG_GPIOLIB)
371 372 /* GPIO chip stucture */
372 373 struct gpio_chip chip;
  374 +#endif
373 375  
374 376 /* Workqueue that does all the magic */
375 377 struct workqueue_struct *workqueue;