iio: light: us5182d: Add missing error code assignment before test
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 10 Aug 2016 05:18:16 +0000 (07:18 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 15 Aug 2016 15:49:43 +0000 (16:49 +0100)
commit281269f8a0b00f5c95de5158e8595ed51bdb4b0a
tree12a169bd9cfabf7c167f387f1f334a58120edaf2
parent7c94a8b2ee8cfe915f332575566b4870976ab8f4
iio: light: us5182d: Add missing error code assignment before test

It is likely that checking the result of 'pm_runtime_set_active' is
expected here.

Fixes: f0e5f57d3ac2 ("iio: light: us8152d: Add power management support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/us5182d.c