diff options
Diffstat (limited to 'drivers/soc/qcom/apr.c')
| -rw-r--r-- | drivers/soc/qcom/apr.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/soc/qcom/apr.c b/drivers/soc/qcom/apr.c index cd44f17dad3d..d51abb462ae5 100644 --- a/drivers/soc/qcom/apr.c +++ b/drivers/soc/qcom/apr.c @@ -461,9 +461,10 @@ static int apr_add_device(struct device *dev, struct device_node *np,  		goto out;  	} +	/* Protection domain is optional, it does not exist on older platforms */  	ret = of_property_read_string_index(np, "qcom,protection-domain",  					    1, &adev->service_path); -	if (ret < 0) { +	if (ret < 0 && ret != -EINVAL) {  		dev_err(dev, "Failed to read second value of qcom,protection-domain\n");  		goto out;  	}  | 
