fsl/fman: Add a missing 'of_node_put()' call in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 6 Nov 2017 21:53:31 +0000 (22:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 04:53:33 +0000 (13:53 +0900)
commit25850c31c8b5c2ce7fb922f5e80de7227ecf6be4
tree214f6d2841b9325cf8a88546b85e225a0548a327
parent336eac4347e74589f868e5da9ca0106953942aa8
fsl/fman: Add a missing 'of_node_put()' call in an error handling path

If 'of_phy_find_device()' fails, we must undo the previous 'of_node_get()'
call, as done the the following error handling code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/mac.c