Skip to content
Commit 49b9f431 authored by Liang He's avatar Liang He Committed by David S. Miller
Browse files

net: ftgmac100: Hold reference returned by of_get_child_by_name()



In ftgmac100_probe(), we should hold the refernece returned by
of_get_child_by_name() and use it to call of_node_put() for
reference balance.

Fixes: 39bfab88 ("net: ftgmac100: Add support for DT phy-handle property")
Signed-off-by: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d5424b2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment