Commit 7cdc2b98 authored by Linus Walleij's avatar Linus Walleij Committed by Samuel Ortiz

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: default avatarLinus Walleij <linus.walleij@stericsson.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 956f25a6
...@@ -107,7 +107,7 @@ int ab3100_set_register_interruptible(struct ab3100 *ab3100, u8 reg, u8 regval) ...@@ -107,7 +107,7 @@ int ab3100_set_register_interruptible(struct ab3100 *ab3100, u8 reg, u8 regval)
err = 0; err = 0;
} }
mutex_unlock(&ab3100->access_mutex); mutex_unlock(&ab3100->access_mutex);
return 0; return err;
} }
EXPORT_SYMBOL(ab3100_set_register_interruptible); EXPORT_SYMBOL(ab3100_set_register_interruptible);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment