Skip to content

Commit

Permalink
ARM: BCM63xx: fix an error path in bcm63xx_pmb_power_on_cpu()
Browse files Browse the repository at this point in the history
We need to unlock and unmap some resourses before returning.

Fixes: 3f2a43c ('ARM: BCM63xx: Add secondary CPU PMB initialization sequence')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  • Loading branch information
Dan Carpenter authored and Florian Fainelli committed May 27, 2015
1 parent ed5cd81 commit 3cc6305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-bcm/bcm63xx_pmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3cc6305

Please sign in to comment.