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:
2720386
)
regulator: qcom_rpm: Don't explicitly initialise the first field of config
author
Axel Lin
<axel.lin@ingics.com>
Wed, 24 Sep 2014 09:45:25 +0000
(17:45 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 26 Sep 2014 08:28:40 +0000
(09:28 +0100)
Doing so generates a warning as the first field is a pointer but we use
0 to initialize it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_rpm-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/qcom_rpm-regulator.c
b/drivers/regulator/qcom_rpm-regulator.c
index 8f283098788aebf2e96f17ce1b48aae4315e43a0..8d5969a8e874888849759cdb505441784dd71791 100644
(file)
--- a/
drivers/regulator/qcom_rpm-regulator.c
+++ b/
drivers/regulator/qcom_rpm-regulator.c
@@
-631,7
+631,7
@@
static int rpm_reg_probe(struct platform_device *pdev)
struct regulator_init_data *initdata;
const struct qcom_rpm_reg *template;
const struct of_device_id *match;
- struct regulator_config config = {
0
};
+ struct regulator_config config = { };
struct regulator_dev *rdev;
struct qcom_rpm_reg *vreg;
const char *key;