If 'of_find_device_by_node()' fails, an 'of_node_put()' call is missing in
the error handling path.
Fix it by reordering the code.
While at it, remove some empty lines in a more or less similar construction
a few lines below.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
        }
 
        mc = of_find_device_by_node(np);
+       of_node_put(np);
        if (!mc)
                return -ENOENT;
 
-       of_node_put(np);
-
        emc->mc = platform_get_drvdata(mc);
        if (!emc->mc)
                return -EPROBE_DEFER;
        }
 
        err = tegra_emc_load_timings_from_dt(emc, np);
-
        of_node_put(np);
-
        if (err)
                return err;