diff options
| author | Yang Yingliang <[email protected]> | 2022-04-26 21:15:39 +0800 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2022-04-26 11:17:47 -0700 |
| commit | c6b61d48b369f92edc71a0c5dd0a9b98ea0b5397 (patch) | |
| tree | ba7c4e81fe065c44e5c575c79cd31b0bdc7ec902 | |
| parent | 1e627317919066386d089aaca1aab77bc5200c02 (diff) | |
clk: en7523: fix wrong pointer check in en7523_clk_probe()
Check the real return value of devm_platform_ioremap_resource()
in en7523_clk_probe().
Fixes: 1e6273179190 ("clk: en7523: Add clock driver for Airoha EN7523 SoC")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Felix Fietkau <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
| -rw-r--r-- | drivers/clk/clk-en7523.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-en7523.c b/drivers/clk/clk-en7523.c index 076a70c2e173..29f0126cbd05 100644 --- a/drivers/clk/clk-en7523.c +++ b/drivers/clk/clk-en7523.c @@ -314,7 +314,7 @@ static int en7523_clk_probe(struct platform_device *pdev) return PTR_ERR(base); np_base = devm_platform_ioremap_resource(pdev, 1); - if (IS_ERR(base)) + if (IS_ERR(np_base)) return PTR_ERR(np_base); clk_data = devm_kzalloc(&pdev->dev, |