* [PATCH] regulator: act8865: Fix build error when !OF
@ 2014-01-06 7:42 Axel Lin
2014-01-06 12:13 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-01-06 7:42 UTC (permalink / raw)
To: Mark Brown; +Cc: Wenyou Yang, Stephen Rothwell, Liam Girdwood, linux-kernel
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>
---
drivers/regulator/act8865-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c
index 5e3e1d2..084cc08 100644
--- a/drivers/regulator/act8865-regulator.c
+++ b/drivers/regulator/act8865-regulator.c
@@ -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;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: act8865: Fix build error when !OF
2014-01-06 7:42 [PATCH] regulator: act8865: Fix build error when !OF Axel Lin
@ 2014-01-06 12:13 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-01-06 12:13 UTC (permalink / raw)
To: Axel Lin; +Cc: Wenyou Yang, Stephen Rothwell, Liam Girdwood, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 235 bytes --]
On Mon, Jan 06, 2014 at 03:42:53PM +0800, Axel Lin wrote:
> Fix below build error when !OF:
> CC [M] drivers/regulator/act8865-regulator.o
> drivers/regulator/act8865-regulator.c: In function 'act8865_pmic_probe':
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-06 12:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-06 7:42 [PATCH] regulator: act8865: Fix build error when !OF Axel Lin
2014-01-06 12:13 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox