usb: ehci/ohci-exynos: Fix of_node_put() for child when getting PHYs
authorVivek Gautam <gautam.vivek@samsung.com>
Mon, 6 Oct 2014 06:21:10 +0000 (11:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Nov 2014 23:34:00 +0000 (15:34 -0800)
commit6d40500ac9b69b78dace3a498bc1690200682789
tree34add65ecb4a73fa431835990e3340991fcef976
parent61fbe96c8b131dcf246030c72dfe97a2cbfb247b
usb: ehci/ohci-exynos: Fix of_node_put() for child when getting PHYs

On enabling CONFIG_OF_SELFTEST which enables CONFIG_OF_DYNAMIC,
we found out that while getting PHYs for the controller we were
doing an extra of_node_put on the child node in our routines -
exynos_e/ohci_get_phy().
This child is however already put by of_get_next_available_child()
which does a of_node_put() on the "prev" node. So there's no point
in putting the same node again in our routine.

Reported-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-exynos.c
drivers/usb/host/ohci-exynos.c