|
@@ -3780,10 +3780,10 @@ static int coda_probe(struct platform_device *pdev)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
- dev->rstc = devm_reset_control_get(&pdev->dev, NULL);
|
|
|
|
|
|
+ dev->rstc = devm_reset_control_get_optional(&pdev->dev, NULL);
|
|
if (IS_ERR(dev->rstc)) {
|
|
if (IS_ERR(dev->rstc)) {
|
|
ret = PTR_ERR(dev->rstc);
|
|
ret = PTR_ERR(dev->rstc);
|
|
- if (ret == -ENOENT) {
|
|
|
|
|
|
+ if (ret == -ENOENT || ret == -ENOSYS) {
|
|
dev->rstc = NULL;
|
|
dev->rstc = NULL;
|
|
} else {
|
|
} else {
|
|
dev_err(&pdev->dev, "failed get reset control: %d\n", ret);
|
|
dev_err(&pdev->dev, "failed get reset control: %d\n", ret);
|