memory: tegra: Add a missing 'of_node_put()' call
commitb92f4380a1c7eb3ed19d6f68ad7b66c66d8102b4
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Wed, 4 Jan 2017 07:13:24 +0000 (4 08:13 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 25 Jan 2017 06:57:13 +0000 (25 07:57 +0100)
tree654fcf2ef2c9cfa6799e197f445f4b518dd534d1
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88
memory: tegra: Add a missing 'of_node_put()' call

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>
drivers/memory/tegra/tegra124-emc.c