Commit d7b4a2f2 authored by Rob Herring's avatar Rob Herring Committed by David S. Miller

net: fsl: Use device_type helpers to access the node type

Remove directly accessing device_node.type pointer and use the accessors
instead. This will eventually allow removing the type pointer.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ee5b60eb
...@@ -473,7 +473,7 @@ static int fsl_pq_mdio_probe(struct platform_device *pdev) ...@@ -473,7 +473,7 @@ static int fsl_pq_mdio_probe(struct platform_device *pdev)
if (data->get_tbipa) { if (data->get_tbipa) {
for_each_child_of_node(np, tbi) { for_each_child_of_node(np, tbi) {
if (strcmp(tbi->type, "tbi-phy") == 0) { if (of_node_is_type(tbi, "tbi-phy")) {
dev_dbg(&pdev->dev, "found TBI PHY node %pOFP\n", dev_dbg(&pdev->dev, "found TBI PHY node %pOFP\n",
tbi); tbi);
break; break;
......
Markdown is supported
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