summaryrefslogtreecommitdiff
path: root/drivers/media/platform/s5p-tv/sii9234_drv.c
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2013-06-10 15:54:15 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-13 05:17:34 +0400
commit984b248f6bdcd0b319e84e43f0be532f989c709a (patch)
treee8801ebd242820ec5b2ca03475684d461968bd30 /drivers/media/platform/s5p-tv/sii9234_drv.c
parentd3775fa76bed74a46e179c08895fafc968f7292a (diff)
downloadlinux-984b248f6bdcd0b319e84e43f0be532f989c709a.tar.xz
[media] s5p-tv: Don't ignore return value of regulator_enable() in sii9234_drv.c
This patch fixes following compilation warning: CC [M] drivers/media/platform/s5p-tv/sii9234_drv.o drivers/media/platform/s5p-tv/sii9234_drv.c: In function ‘sii9234_runtime_resume’: drivers/media/platform/s5p-tv/sii9234_drv.c:252:18: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/s5p-tv/sii9234_drv.c')
-rw-r--r--drivers/media/platform/s5p-tv/sii9234_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-tv/sii9234_drv.c b/drivers/media/platform/s5p-tv/sii9234_drv.c
index 39b77d24b9c2..3dd762e5b67e 100644
--- a/drivers/media/platform/s5p-tv/sii9234_drv.c
+++ b/drivers/media/platform/s5p-tv/sii9234_drv.c
@@ -249,7 +249,9 @@ static int sii9234_runtime_resume(struct device *dev)
int ret;
dev_info(dev, "resume start\n");
- regulator_enable(ctx->power);
+ ret = regulator_enable(ctx->power);
+ if (ret < 0)
+ return ret;
ret = sii9234_reset(ctx);
if (ret)