projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
836dc9e
)
regulator: as3711: Fix checking if no platform initialization data
author
Axel Lin
<
[email protected]
>
Wed, 13 Feb 2013 01:34:48 +0000
(09:34 +0800)
committer
Mark Brown
<
[email protected]
>
Wed, 13 Feb 2013 12:56:51 +0000
(12:56 +0000)
To skip registering regulator if no platform initialization data,
we should check reg_data rather than ri->desc.name.
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Guennadi Liakhovetski <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/regulator/as3711-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/as3711-regulator.c
b/drivers/regulator/as3711-regulator.c
index 2f1341db38a0ad8d80802834244641a310a20399..f0ba8c4eefa95099ebb9a14912a3cf302f38365d 100644
(file)
--- a/
drivers/regulator/as3711-regulator.c
+++ b/
drivers/regulator/as3711-regulator.c
@@
-303,7
+303,7
@@
static int as3711_regulator_probe(struct platform_device *pdev)
reg_data = pdata ? pdata->init_data[id] : NULL;
/* No need to register if there is no regulator data */
- if (!r
i->desc.name
)
+ if (!r
eg_data
)
continue;
reg = ®s[id];