diff options
| -rw-r--r-- | drivers/hwspinlock/u8500_hsem.c | 6 | ||||
| -rw-r--r-- | include/linux/hwspinlock.h | 1 |
2 files changed, 2 insertions, 5 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) | |||
| 108 | return -ENODEV; | 108 | return -ENODEV; |
| 109 | 109 | ||
| 110 | io_base = ioremap(res->start, resource_size(res)); | 110 | io_base = ioremap(res->start, resource_size(res)); |
| 111 | if (!io_base) { | 111 | if (!io_base) |
| 112 | ret = -ENOMEM; | 112 | return -ENOMEM; |
| 113 | goto free_state; | ||
| 114 | } | ||
| 115 | 113 | ||
| 116 | /* make sure protocol 1 is selected */ | 114 | /* make sure protocol 1 is selected */ |
| 117 | val = readl(io_base + HSEM_CTRL_REG); | 115 | val = readl(io_base + HSEM_CTRL_REG); |
diff --git a/include/linux/hwspinlock.h b/include/linux/hwspinlock.h index 08a2fee40659..aad6bd4b3efd 100644 --- a/include/linux/hwspinlock.h +++ b/include/linux/hwspinlock.h | |||
| @@ -118,7 +118,6 @@ int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) | |||
| 118 | static inline | 118 | static inline |
| 119 | void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) | 119 | void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) |
| 120 | { | 120 | { |
| 121 | return 0; | ||
| 122 | } | 121 | } |
| 123 | 122 | ||
| 124 | static inline int hwspin_lock_get_id(struct hwspinlock *hwlock) | 123 | static inline int hwspin_lock_get_id(struct hwspinlock *hwlock) |
