Commit 7cdc2b98cec4c9b5bd563adf9eec90e7a7e12234

Authored by Linus Walleij
Committed by Samuel Ortiz
1 parent 956f25a677

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mfd/ab3100-core.c
... ... @@ -107,7 +107,7 @@
107 107 err = 0;
108 108 }
109 109 mutex_unlock(&ab3100->access_mutex);
110   - return 0;
  110 + return err;
111 111 }
112 112 EXPORT_SYMBOL(ab3100_set_register_interruptible);
113 113