drivers: net: cpsw: increment reference count on fixed-link PHY node
authorDavid Rivshin <drivshin@allworx.com>
Thu, 17 Dec 2015 04:02:11 +0000 (23:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 19:46:06 +0000 (14:46 -0500)
commitdfc0a6d39aad6d633141726eb2e37e15bda1fccd
tree6916c78eb7de8ff5831450daefc66c0b532510ee
parentf1eea5c15ae799a1291f0f481fa3ea09be913fa9
drivers: net: cpsw: increment reference count on fixed-link PHY node

When a fixed-link sub-node exists in a slave node, the slave node
is also the PHY node. Since this is a separate use of the slave node,
of_node_get() should be used to increment the reference count.

Fixes: 1f71e8c96fc6 ("drivers: net: cpsw: Add support for fixed-link PHY")
Signed-off-by: David Rivshin <drivshin@allworx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c