Skip to content

Commit

Permalink
serial: max3107: Fix gpiolib support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent 3c4108c commit e38018b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/serial/max3107.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e38018b

Please sign in to comment.