]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/media/platform/soc_camera/soc_camera.c
Merge remote-tracking branch 'devicetree/devicetree/next'
[karo-tx-linux.git] / drivers / media / platform / soc_camera / soc_camera.c
index 552bb969a2b001363e1470ac3a00b8192f836366..d9d669a4859003832d0ee621b64c328f280c5894 100644 (file)
@@ -1694,7 +1694,6 @@ static void scan_of_host(struct soc_camera_host *ici)
                if (!i)
                        soc_of_bind(ici, epn, ren->parent);
 
-               of_node_put(epn);
                of_node_put(ren);
 
                if (i) {
@@ -1702,6 +1701,8 @@ static void scan_of_host(struct soc_camera_host *ici)
                        break;
                }
        }
+
+       of_node_put(epn);
 }
 
 #else