]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mcp23s08: Bug fix of SPI device tree registration.
authorMichael Welling <mwelling@ieee.org>
Thu, 17 Apr 2014 01:00:24 +0000 (20:00 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 08:28:16 +0000 (10:28 +0200)
commit56fcce754ebc93c32e30f707d47377b820eb2073
tree209a4794bec9611e0c0255c5057a541fee6b209d
parentf6ebcb1fe743322df151b54924ddf0088df8518d
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>
drivers/gpio/gpio-mcp23s08.c