Skip to content

Commit 9007d91

Browse files
robherringdavem330
authored andcommitted
net: dsa: qca8k: Use of_property_present() for non-boolean properties
The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence. Signed-off-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 25cc469 commit 9007d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/qca/qca8k-8xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ qca8k_setup_mdio_bus(struct qca8k_priv *priv)
10191019

10201020
of_get_phy_mode(port, &mode);
10211021

1022-
if (of_property_read_bool(port, "phy-handle") &&
1022+
if (of_property_present(port, "phy-handle") &&
10231023
mode != PHY_INTERFACE_MODE_INTERNAL)
10241024
external_mdio_mask |= BIT(reg);
10251025
else

0 commit comments

Comments
 (0)