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:
d6871a7
)
mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk
author
Axel Lin
<
[email protected]
>
Wed, 26 Jun 2019 13:30:07 +0000
(21:30 +0800)
committer
Lee Jones
<
[email protected]
>
Tue, 2 Jul 2019 11:11:31 +0000
(12:11 +0100)
Since devm_regmap_init_mmio_clk can fail, add return value checking.
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Chen Feng <
[email protected]
>
Signed-off-by: Lee Jones <
[email protected]
>
drivers/mfd/hi655x-pmic.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/hi655x-pmic.c
b/drivers/mfd/hi655x-pmic.c
index 96c07fa1802adcce7d48f971410096b4b2a4f479..6693f74aa6ab9a41307b1838ce21011e0fc0fc68 100644
(file)
--- a/
drivers/mfd/hi655x-pmic.c
+++ b/
drivers/mfd/hi655x-pmic.c
@@
-112,6
+112,8
@@
static int hi655x_pmic_probe(struct platform_device *pdev)
pmic->regmap = devm_regmap_init_mmio_clk(dev, NULL, base,
&hi655x_regmap_config);
+ if (IS_ERR(pmic->regmap))
+ return PTR_ERR(pmic->regmap);
regmap_read(pmic->regmap, HI655X_BUS_ADDR(HI655X_VER_REG), &pmic->ver);
if ((pmic->ver < PMU_VER_START) || (pmic->ver > PMU_VER_END)) {