Skip to content

Commit

Permalink
mfd: Fix tps65910 build failure
Browse files Browse the repository at this point in the history
The tps65910_parse_dt() prototype for !CONFIG_OF was not correct, leading to:

drivers/mfd/tps65910.c: In function ‘tps65910_i2c_probe’:
drivers/mfd/tps65910.c:218:3: error: too many arguments to function ‘tps65910_parse_dt’

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Samuel Ortiz committed May 20, 2012
1 parent 32df986 commit 7f65f74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/mfd/tps65910.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client,
return board_info;
}
#else
static inline struct tps65910_board *tps65910_parse_dt(
struct i2c_client *client)
static inline
struct tps65910_board *tps65910_parse_dt(struct i2c_client *client,
int *chip_id)
{
return NULL;
}
Expand Down

0 comments on commit 7f65f74

Please sign in to comment.