[media] s5p-tv: Don't ignore return value of regulator_enable() in sii9234_drv.c
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 10 Jun 2013 11:54:15 +0000 (08:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Jun 2013 01:17:34 +0000 (22:17 -0300)
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>
drivers/media/platform/s5p-tv/sii9234_drv.c

index 39b77d24b9c276b3ef1d0dff2b0fed6f4cca72c1..3dd762e5b67e8e53ff05d2fd57351c71e9471797 100644 (file)
@@ -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)