summaryrefslogtreecommitdiffstats
path: root/drivers/hwspinlock
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-06 14:14:16 +0100
committerOhad Ben-Cohen <ohad@wizery.com>2011-11-08 08:28:41 +0100
commitfdcb23634c9b6649bb02c681033d4973491b0e35 (patch)
treee46cca4b5748501aa8f2b3204e1c0e2d87dc0509 /drivers/hwspinlock
parenthwspinlock: Don't return a value in __hwspin_unlock (diff)
downloadlinux-fdcb23634c9b6649bb02c681033d4973491b0e35.tar.xz
linux-fdcb23634c9b6649bb02c681033d4973491b0e35.zip
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>
Diffstat (limited to 'drivers/hwspinlock')
-rw-r--r--drivers/hwspinlock/u8500_hsem.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hwspinlock/u8500_hsem.c b/drivers/hwspinlock/u8500_hsem.c
index 143461a95ae4..a120f14814f9 100644
--- a/drivers/hwspinlock/u8500_hsem.c
+++ b/drivers/hwspinlock/u8500_hsem.c
@@ -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);