Commit 39b4da71ca334354f30941067f214ea2f2b92f3e (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_w...@mail.ru>
---
 drivers/media/platform/coda/coda-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/coda/coda-common.c 
b/drivers/media/platform/coda/coda-common.c
index 133ab9f..098653d 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -2226,7 +2226,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",
-- 
2.4.9

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to