Skip to content
Commit 99e4b98d authored by Michael Welling's avatar Michael Welling Committed by Linus Walleij
Browse files

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: default avatarMichael Welling <mwelling@ieee.org>
Acked-by: default avatarPeter Korsgaard <peter@korsgaard.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a7008ee1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment