diff options
Diffstat (limited to 'drivers/hwspinlock')
-rw-r--r-- | drivers/hwspinlock/u8500_hsem.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hwspinlock/u8500_hsem.c b/drivers/hwspinlock/u8500_hsem.c index 0156af510032..86980fe04117 100644 --- a/drivers/hwspinlock/u8500_hsem.c +++ b/drivers/hwspinlock/u8500_hsem.c | |||
@@ -109,10 +109,8 @@ static int __devinit u8500_hsem_probe(struct platform_device *pdev) | |||
109 | return -ENODEV; | 109 | return -ENODEV; |
110 | 110 | ||
111 | io_base = ioremap(res->start, resource_size(res)); | 111 | io_base = ioremap(res->start, resource_size(res)); |
112 | if (!io_base) { | 112 | if (!io_base) |
113 | ret = -ENOMEM; | 113 | return -ENOMEM; |
114 | goto free_state; | ||
115 | } | ||
116 | 114 | ||
117 | /* make sure protocol 1 is selected */ | 115 | /* make sure protocol 1 is selected */ |
118 | val = readl(io_base + HSEM_CTRL_REG); | 116 | val = readl(io_base + HSEM_CTRL_REG); |