Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cc63056 authored by Dan Carpenter's avatar Dan Carpenter Committed by Florian Fainelli
Browse files

ARM: BCM63xx: fix an error path in bcm63xx_pmb_power_on_cpu()



We need to unlock and unmap some resourses before returning.

Fixes: 3f2a43c9 ('ARM: BCM63xx: Add secondary CPU PMB initialization sequence')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent ed5cd816
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ int bcm63xx_pmb_power_on_cpu(struct device_node *dn)
	 */
	ret = bpcm_rd(base, addr, ARM_CONTROL, &ctrl);
	if (ret)
		return ret;
		goto out;

	if (ctrl & CPU_RESET_N(cpu)) {
		pr_info("PMB: CPU%d is already powered on\n", cpu);