From: Ben Dooks Date: Mon, 2 Nov 2009 16:52:20 +0000 (+0000) Subject: mfd: Allow the board to choose any GPIO base for tps65010 X-Git-Tag: v2.6.33-rc1~285^2~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=848369926693778cd0f31bfca7fb951164715b4f;p=karo-tx-linux.git mfd: Allow the board to choose any GPIO base for tps65010 If the board does not care where the TPS turns up, then specifiying the value -1 to get gpiolib to dynamically allocate the base for the chip is valid. Change the test to look for != 0, so that any boards specifying zero will not end up with gpio that they didn't want. Signed-off-by: Ben Dooks Signed-off-by: Simtec Liunx Team Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/tps65010.c b/drivers/mfd/tps65010.c index acf8b9d5f575..755c4030ea31 100644 --- a/drivers/mfd/tps65010.c +++ b/drivers/mfd/tps65010.c @@ -637,7 +637,7 @@ static int tps65010_probe(struct i2c_client *client, tps, DEBUG_FOPS); /* optionally register GPIOs */ - if (board && board->base > 0) { + if (board && board->base != 0) { tps->outmask = board->outmask; tps->chip.label = client->name;