Michael Welling 99e4b98dbe gpio: mcp23s08: Bug fix of SPI device tree registration.
The chips variable needs to be incremented for each chip that is
found in the spi_present_mask when registering via device tree.
Without this and the checking a negative index is passed to the
data->chip array in a subsequent loop.

Cc: stable@vger.kernel.org
Signed-off-by: Michael Welling <mwelling@ieee.org>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2014-05-09 10:28:16 +02:00
..
2013-10-29 18:26:14 -07:00
2013-12-12 14:28:12 +01:00
2014-03-14 10:26:45 +01:00
2012-11-28 11:39:59 -08:00
2011-06-06 10:10:11 -06:00
2013-08-16 15:24:35 +02:00
2012-11-28 11:39:33 -08:00
2014-01-21 10:09:12 -08:00
2013-08-16 15:24:35 +02:00
2014-04-18 16:40:08 -07:00
2013-08-16 15:24:35 +02:00
2013-12-09 14:04:37 +01:00
2013-06-17 07:47:33 +02:00
2014-04-05 15:37:40 -07:00
2014-03-18 09:28:31 +01:00