mfd: twl6040: Check for error when reading revision register
authorFlorian Vaussard <florian.vaussard@epfl.ch>
Tue, 25 Feb 2014 13:28:19 +0000 (14:28 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 08:58:27 +0000 (08:58 +0000)
commit89d68998308e16c49ce18b402d5f702d5a1767e5
treeefac6e0183b12c6c9bac78755eae15746a9496e5
parentf8935e1cfcccd4904ee1bd1420aa781d43175479
mfd: twl6040: Check for error when reading revision register

We may have an error when reading the revision register, so check for
the returned value.

Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl6040.c