Skip to content

Commit c4a6c70

Browse files
committed
Merge tag 'gpio-v4.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio
Pull GPIO fixes from Linus Walleij: "Some GPIO fixes that have been boiling the last two weeks or so. Nothing special, I'm trying to sort out some Kconfig business and Russell needs a fix in for -his SA1100 rework. Summary: - Revert a pointless attempt to add an include to solve the UM allyes compilation problem. - Make the mcp23s08 depend on OF_GPIO as it uses it and doesn't compile properly without it. - Fix a probing problem for ucb1x00" * tag 'gpio-v4.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: gpio: sa1100: fix irq probing for ucb1x00 gpio: mcp23s08: make driver depend on OF_GPIO Revert "gpio: include <linux/io-mapping.h> in gpiolib-of"
2 parents 6dc728c + 56beac9 commit c4a6c70

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,7 @@ menu "SPI or I2C GPIO expanders"
11311131

11321132
config GPIO_MCP23S08
11331133
tristate "Microchip MCP23xxx I/O expander"
1134+
depends on OF_GPIO
11341135
select GPIOLIB_IRQCHIP
11351136
help
11361137
SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017

drivers/gpio/gpio-mcp23s08.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ static int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev,
564564
mcp->chip.direction_output = mcp23s08_direction_output;
565565
mcp->chip.set = mcp23s08_set;
566566
mcp->chip.dbg_show = mcp23s08_dbg_show;
567-
#ifdef CONFIG_OF
567+
#ifdef CONFIG_OF_GPIO
568568
mcp->chip.of_gpio_n_cells = 2;
569569
mcp->chip.of_node = dev->of_node;
570570
#endif

drivers/gpio/gpio-sa1100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static int sa1100_gpio_irqdomain_map(struct irq_domain *d,
155155
{
156156
irq_set_chip_and_handler(irq, &sa1100_gpio_irq_chip,
157157
handle_edge_irq);
158-
irq_set_noprobe(irq);
158+
irq_set_probe(irq);
159159

160160
return 0;
161161
}

drivers/gpio/gpiolib-of.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/errno.h>
1717
#include <linux/module.h>
1818
#include <linux/io.h>
19-
#include <linux/io-mapping.h>
2019
#include <linux/gpio/consumer.h>
2120
#include <linux/of.h>
2221
#include <linux/of_address.h>

0 commit comments

Comments
 (0)