提交 984b248f 编写于 作者: S Sylwester Nawrocki 提交者: Mauro Carvalho Chehab

[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: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 d3775fa7
...@@ -249,7 +249,9 @@ static int sii9234_runtime_resume(struct device *dev) ...@@ -249,7 +249,9 @@ static int sii9234_runtime_resume(struct device *dev)
int ret; int ret;
dev_info(dev, "resume start\n"); dev_info(dev, "resume start\n");
regulator_enable(ctx->power); ret = regulator_enable(ctx->power);
if (ret < 0)
return ret;
ret = sii9234_reset(ctx); ret = sii9234_reset(ctx);
if (ret) if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册