aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/platform/coda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
index c44feee1c320..3a6d1d2b429e 100644
--- a/drivers/media/platform/coda.c
+++ b/drivers/media/platform/coda.c
@@ -3780,10 +3780,10 @@ static int coda_probe(struct platform_device *pdev)
3780 return ret; 3780 return ret;
3781 } 3781 }
3782 3782
3783 dev->rstc = devm_reset_control_get(&pdev->dev, NULL); 3783 dev->rstc = devm_reset_control_get_optional(&pdev->dev, NULL);
3784 if (IS_ERR(dev->rstc)) { 3784 if (IS_ERR(dev->rstc)) {
3785 ret = PTR_ERR(dev->rstc); 3785 ret = PTR_ERR(dev->rstc);
3786 if (ret == -ENOENT) { 3786 if (ret == -ENOENT || ret == -ENOSYS) {
3787 dev->rstc = NULL; 3787 dev->rstc = NULL;
3788 } else { 3788 } else {
3789 dev_err(&pdev->dev, "failed get reset control: %d\n", ret); 3789 dev_err(&pdev->dev, "failed get reset control: %d\n", ret);