]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/remoteproc/qcom_q6v5_mss.c
Merge tag 'rtc-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
[linux.git] / drivers / remoteproc / qcom_q6v5_mss.c
index 8fcf9d28dd731f0eafe80e6830b70dcc25a8b8f2..de919f2e8b949c3184586c7ac7450a7d3e101a08 100644 (file)
@@ -1282,8 +1282,8 @@ static int q6v5_pds_attach(struct device *dev, struct device **devs,
 
        for (i = 0; i < num_pds; i++) {
                devs[i] = dev_pm_domain_attach_by_name(dev, pd_names[i]);
-               if (IS_ERR(devs[i])) {
-                       ret = PTR_ERR(devs[i]);
+               if (IS_ERR_OR_NULL(devs[i])) {
+                       ret = PTR_ERR(devs[i]) ? : -ENODATA;
                        goto unroll_attach;
                }
        }