From: Michael Welling Date: Thu, 17 Apr 2014 01:00:24 +0000 (-0500) Subject: gpio: mcp23s08: Bug fix of SPI device tree registration. X-Git-Tag: omap-for-v3.16/fixes-against-rc1~168^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e4b98dbe3ad1fe38a74d12c3b8d44a55930de4;p=pandora-kernel.git 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 Acked-by: Peter Korsgaard Signed-off-by: Linus Walleij --- Reading git-diff-tree failed