]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: arc_emac: add missing of_node_put() in arc_emac_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Wed, 3 Aug 2016 10:58:35 +0000 (10:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Aug 2016 04:07:38 +0000 (00:07 -0400)
commit54447f1ad73414ebb052e9a33d079cabed3a03e8
tree1a477222c5c8636fc383d8bb8a7792e7d514b3ee
parent5ef9f289c4e698054e5687edb54f0da3cdc9173a
net: arc_emac: add missing of_node_put() in arc_emac_probe()

commit a94efbd7cc45 ("ethernet: arc: emac_main: add missing of_node_put
after calling of_parse_phandle") added missing of_node_put after calling
of_parse_phandle, but missing the devm_ioremap_resource() error handling
case.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_main.c