lis3: free regulators if probe() fails
authorÉric Piel <eric.piel@tremplin-utc.net>
Tue, 1 Nov 2011 00:10:54 +0000 (17:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Nov 2011 00:30:52 +0000 (17:30 -0700)
commit0021586b958d7eb5d73dbb9c42a0b4f19ebe3a9e
tree5bd2480a864e1f0d2107e48d16988b4676516bff
parentd0b6a971ed034054897df42f3e3000b4f57cccc5
lis3: free regulators if probe() fails

Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com>
Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Witold Pilat <witold.pilat@gmail.com>
Cc: Lyall Pearce <lyall.pearce@hp.com>
Cc: Malte Starostik <m-starostik@versanet.de>
Cc: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/lis3lv02d/lis3lv02d_i2c.c