diff options
author | Michael Welling <mwelling@ieee.org> | 2014-04-16 20:00:24 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-11 11:54:14 -0700 |
commit | f10acdb935fa79b48719e0a7bf284b7c1e5bf776 (patch) | |
tree | 2abaad4ed38a8667f07a581115b1fdb9bc7cc772 /drivers/usb/class/cdc-acm.c | |
parent | 3af2e71643df2f603bea99a7e0e13afbf9ea6d78 (diff) |
gpio: mcp23s08: Bug fix of SPI device tree registration.
commit 99e4b98dbe3ad1fe38a74d12c3b8d44a55930de4 upstream.
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.
Signed-off-by: Michael Welling <mwelling@ieee.org>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions