Skip to content

Commit 607b310

Browse files
js731caPaolo Abeni
authored andcommitted
net: dp83822: Fix OF_MDIO config check
When CONFIG_OF_MDIO is set to be a module the code block is not compiled. Use the IS_ENABLED macro that checks for both built in as well as module. Fixes: 5dc39fd ("net: phy: DP83822: Add ability to advertise Fiber connection") Signed-off-by: Johannes Schneider <[email protected]> Reviewed-by: Maxime Chevallier <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 4fe09ff commit 607b310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/dp83822.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ static int dp83822_phy_reset(struct phy_device *phydev)
730730
return phydev->drv->config_init(phydev);
731731
}
732732

733-
#ifdef CONFIG_OF_MDIO
733+
#if IS_ENABLED(CONFIG_OF_MDIO)
734734
static const u32 tx_amplitude_100base_tx_gain[] = {
735735
80, 82, 83, 85, 87, 88, 90, 92,
736736
93, 95, 97, 98, 100, 102, 103, 105,

0 commit comments

Comments
 (0)