Skip to content

Commit

Permalink
regulator: act8865: Fix build error when !OF
Browse files Browse the repository at this point in the history
Fix below build error when !OF:
  CC [M]  drivers/regulator/act8865-regulator.o
drivers/regulator/act8865-regulator.c: In function 'act8865_pmic_probe':
drivers/regulator/act8865-regulator.c:306:18: error: 'act8865_matches' undeclared (first use in this function)
drivers/regulator/act8865-regulator.c:306:18: note: each undeclared identifier is reported only once for each function it appears in
drivers/regulator/act8865-regulator.c:306:18: error: negative width in bit-field '<anonymous>'
make[2]: *** [drivers/regulator/act8865-regulator.o] Error 1
make[1]: *** [drivers/regulator] Error 2
make: *** [drivers] Error 2

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jan 6, 2014
1 parent d04b755 commit a8659ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/act8865-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ static int act8865_pmic_probe(struct i2c_client *client,
}

/* Finally register devices */
for (i = 0; i < ARRAY_SIZE(act8865_matches); i++) {
for (i = 0; i < ACT8865_REG_NUM; i++) {

id = pdata->regulators[i].id;

Expand Down

0 comments on commit a8659ba

Please sign in to comment.