diff options
author | Linus Walleij <linus.walleij@stericsson.com> | 2009-08-13 05:49:38 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-09-17 03:47:17 -0400 |
commit | 7cdc2b98cec4c9b5bd563adf9eec90e7a7e12234 (patch) | |
tree | 5a6afdfbd5fc8da7f8ddfe7ea863737bcf93ff28 /drivers/mfd | |
parent | 956f25a6778a2510d52973ab8a3ac2e03e2c3704 (diff) |
mfd: AB3100 propagate error
This makes ab3100_set_register_interruptible() propagate the error
code from suboperations properly so it can be handles properly.
(A special case comes from signal interruption.)
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab3100-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c index ffe4b6415465..377ec2ba6549 100644 --- a/drivers/mfd/ab3100-core.c +++ b/drivers/mfd/ab3100-core.c | |||
@@ -107,7 +107,7 @@ int ab3100_set_register_interruptible(struct ab3100 *ab3100, u8 reg, u8 regval) | |||
107 | err = 0; | 107 | err = 0; |
108 | } | 108 | } |
109 | mutex_unlock(&ab3100->access_mutex); | 109 | mutex_unlock(&ab3100->access_mutex); |
110 | return 0; | 110 | return err; |
111 | } | 111 | } |
112 | EXPORT_SYMBOL(ab3100_set_register_interruptible); | 112 | EXPORT_SYMBOL(ab3100_set_register_interruptible); |
113 | 113 | ||