Skip to content

Commit

Permalink
mfd: AB3100 propagate error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Walleij authored and Samuel Ortiz committed Sep 17, 2009
1 parent 956f25a commit 7cdc2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/ab3100-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int ab3100_set_register_interruptible(struct ab3100 *ab3100, u8 reg, u8 regval)
err = 0;
}
mutex_unlock(&ab3100->access_mutex);
return 0;
return err;
}
EXPORT_SYMBOL(ab3100_set_register_interruptible);

Expand Down

0 comments on commit 7cdc2b9

Please sign in to comment.