diff options
author | Rob Herring <robh@kernel.org> | 2018-12-05 13:50:32 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-05 20:51:05 -0800 |
commit | bf5849f15a30358e0af55576d93aedefe41e781d (patch) | |
tree | 822d69a1ef271c895b4c2768d1981a52f8073bf8 /drivers/net/ethernet/sun/sunhme.c | |
parent | d66280b12bd7ad6345df4dee2ee1c20f5902242d (diff) | |
download | linux-stable-bf5849f15a30358e0af55576d93aedefe41e781d.tar.gz linux-stable-bf5849f15a30358e0af55576d93aedefe41e781d.tar.bz2 linux-stable-bf5849f15a30358e0af55576d93aedefe41e781d.zip |
net: Use of_node_name_eq for node name comparisons
Convert string compares of DT node names to use of_node_name_eq helper
instead. This removes direct access to the node name pointer.
For instances using of_node_cmp, this has the side effect of now using
case sensitive comparisons. This should not matter for any FDT based
system which all of these are.
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Claudiu Manoil <claudiu.manoil@nxp.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Wingman Kwok <w-kwok2@ti.com>
Cc: Murali Karicheri <m-karicheri2@ti.com>
Cc: netdev@vger.kernel.org
Cc: linux-omap@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunhme.c')
-rw-r--r-- | drivers/net/ethernet/sun/sunhme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c index 863fd602fd33..ff641cf30a4e 100644 --- a/drivers/net/ethernet/sun/sunhme.c +++ b/drivers/net/ethernet/sun/sunhme.c @@ -2691,7 +2691,7 @@ static int happy_meal_sbus_probe_one(struct platform_device *op, int is_qfe) sbus_dp = op->dev.parent->of_node; /* We can match PCI devices too, do not accept those here. */ - if (strcmp(sbus_dp->name, "sbus") && strcmp(sbus_dp->name, "sbi")) + if (!of_node_name_eq(sbus_dp, "sbus") && !of_node_name_eq(sbus_dp, "sbi")) return err; if (is_qfe) { |