mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
hwspinlock/u8500: fix build error due to undefined label
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>
This commit is contained in:
parent
816af3bb50
commit
fdcb23634c
1 changed files with 2 additions and 4 deletions
|
|
@ -108,10 +108,8 @@ static int __devinit u8500_hsem_probe(struct platform_device *pdev)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
io_base = ioremap(res->start, resource_size(res));
|
io_base = ioremap(res->start, resource_size(res));
|
||||||
if (!io_base) {
|
if (!io_base)
|
||||||
ret = -ENOMEM;
|
return -ENOMEM;
|
||||||
goto free_state;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* make sure protocol 1 is selected */
|
/* make sure protocol 1 is selected */
|
||||||
val = readl(io_base + HSEM_CTRL_REG);
|
val = readl(io_base + HSEM_CTRL_REG);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue