Skip to content

Commit

Permalink
mfd: Allow the board to choose any GPIO base for tps65010
Browse files Browse the repository at this point in the history
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 <ben@simtec.co.uk>
Signed-off-by: Simtec Liunx Team <linux@simtec.co.uk>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Ben Dooks authored and Samuel Ortiz committed Dec 13, 2009
1 parent 38a6849 commit 8483699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/tps65010.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8483699

Please sign in to comment.