diff options
Diffstat (limited to 'kernel/drivers/soc')
-rw-r--r-- | kernel/drivers/soc/qcom/spm.c | 2 | ||||
-rw-r--r-- | kernel/drivers/soc/rockchip/pm_domains.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/soc/qcom/spm.c b/kernel/drivers/soc/qcom/spm.c index b04b05a09..65bce1eec 100644 --- a/kernel/drivers/soc/qcom/spm.c +++ b/kernel/drivers/soc/qcom/spm.c @@ -288,7 +288,7 @@ static struct spm_driver_data *spm_get_drv(struct platform_device *pdev, struct spm_driver_data *drv = NULL; struct device_node *cpu_node, *saw_node; int cpu; - bool found; + bool found = 0; for_each_possible_cpu(cpu) { cpu_node = of_cpu_device_node_get(cpu); diff --git a/kernel/drivers/soc/rockchip/pm_domains.c b/kernel/drivers/soc/rockchip/pm_domains.c index 534c58937..4a65c5bda 100644 --- a/kernel/drivers/soc/rockchip/pm_domains.c +++ b/kernel/drivers/soc/rockchip/pm_domains.c @@ -419,6 +419,7 @@ static int rockchip_pm_domain_probe(struct platform_device *pdev) if (error) { dev_err(dev, "failed to handle node %s: %d\n", node->name, error); + of_node_put(node); goto err_out; } } |