summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2016-06-18 11:45:15 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-08 16:34:59 -0300
commit84345a23fa102100a13ff12f57d6aa09eb9359bc (patch)
treea161365d3a977bc2f81eb14ca539af91bc7aefab /drivers/media/platform/coda
parent811c6d6a424383086841ef3552b600452fa37542 (diff)
downloadblackbird-op-linux-84345a23fa102100a13ff12f57d6aa09eb9359bc.tar.gz
blackbird-op-linux-84345a23fa102100a13ff12f57d6aa09eb9359bc.zip
[media] media: coda: Fix probe() if reset controller is missing
Commit 39b4da71ca33 ("reset: use ENOTSUPP instead of ENOSYS") changed return value for reset controller if it missing. This patch changes the CODA driver to handle this value. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/coda')
-rw-r--r--drivers/media/platform/coda/coda-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index 3e9b7c817684..c39718a63e5e 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -2216,7 +2216,7 @@ static int coda_probe(struct platform_device *pdev)
dev->rstc = devm_reset_control_get_optional(&pdev->dev, NULL);
if (IS_ERR(dev->rstc)) {
ret = PTR_ERR(dev->rstc);
- if (ret == -ENOENT || ret == -ENOSYS) {
+ if (ret == -ENOENT || ret == -ENOTSUPP) {
dev->rstc = NULL;
} else {
dev_err(&pdev->dev, "failed get reset control: %d\n",
OpenPOWER on IntegriCloud