This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: video-mux: Use dev_err_probe()
Author:  Philipp Zabel <[email protected]>
Date:    Tue Apr 12 08:29:05 2022 +0100

Simplify the mux error path a bit by using dev_err_probe().

Signed-off-by: Philipp Zabel <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/platform/video-mux.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

---

diff --git a/drivers/media/platform/video-mux.c 
b/drivers/media/platform/video-mux.c
index fda8fc0e4814..b31e5913a4cd 100644
--- a/drivers/media/platform/video-mux.c
+++ b/drivers/media/platform/video-mux.c
@@ -442,9 +442,7 @@ static int video_mux_probe(struct platform_device *pdev)
        vmux->mux = devm_mux_control_get(dev, NULL);
        if (IS_ERR(vmux->mux)) {
                ret = PTR_ERR(vmux->mux);
-               if (ret != -EPROBE_DEFER)
-                       dev_err(dev, "Failed to get mux: %d\n", ret);
-               return ret;
+               return dev_err_probe(dev, ret, "Failed to get mux\n");
        }
 
        mutex_init(&vmux->lock);

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to