Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: rockchip: power-domain: check the existing of regmap

Check return value of syscon_node_to_regmap for
rockchip_pm_domain_probe. If err value is returned, probe
procedure should abort.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>

authored by

Shawn Lin and committed by
Heiko Stuebner
4506697d fd8b62cc

+4
+4
drivers/soc/rockchip/pm_domains.c
··· 475 475 } 476 476 477 477 pmu->regmap = syscon_node_to_regmap(parent->of_node); 478 + if (IS_ERR(pmu->regmap)) { 479 + dev_err(dev, "no regmap available\n"); 480 + return PTR_ERR(pmu->regmap); 481 + } 478 482 479 483 /* 480 484 * Configure power up and down transition delays for CORE