Explorar o código

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>
Linus Walleij %!s(int64=16) %!d(string=hai) anos
pai
achega
7cdc2b98ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/mfd/ab3100-core.c

+ 1 - 1
drivers/mfd/ab3100-core.c

@@ -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);