Skip to content

Commit

Permalink
hwspinlock/u8500: fix build error due to undefined label
Browse files Browse the repository at this point in the history
Fix below build error:

  CC      drivers/hwspinlock/u8500_hsem.o
drivers/hwspinlock/u8500_hsem.c: In function 'u8500_hsem_probe':
drivers/hwspinlock/u8500_hsem.c:113: error: label 'free_state' used but not defined

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
  • Loading branch information
Axel Lin authored and Ohad Ben-Cohen committed Nov 8, 2011
1 parent 816af3b commit fdcb236
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/hwspinlock/u8500_hsem.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,8 @@ static int __devinit u8500_hsem_probe(struct platform_device *pdev)
return -ENODEV;

io_base = ioremap(res->start, resource_size(res));
if (!io_base) {
ret = -ENOMEM;
goto free_state;
}
if (!io_base)
return -ENOMEM;

/* make sure protocol 1 is selected */
val = readl(io_base + HSEM_CTRL_REG);
Expand Down

0 comments on commit fdcb236

Please sign in to comment.