gpio: mcp23s08: switch chip count to int

Commit 3e3bed913e
"gpio: mcp23s08: fixed count variable for devicetree probing"
introduced a loop check to see if the number of chips were
unconsistent and going below zero counting downwards, but
this requires the counting variable to be able to be
negative, so switch the variable from unsigned to int.

Cc: Michael Stickel <ms@mycable.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Linus Walleij 2014-05-28 09:14:06 +02:00
parent 6a2f4b7dad
commit 596a1c5f51
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ static int mcp23s08_probe(struct spi_device *spi)
{
struct mcp23s08_platform_data *pdata;
unsigned addr;
unsigned chips = 0;
int chips = 0;
struct mcp23s08_driver_data *data;
int status, type;
unsigned base = -1,