[PATCH v2 06/21] net: phy: fixed: Drop #ifdef CONFIG_DM_ETH around phy_connect_fixed

Vladimir Oltean olteanv at gmail.com
Sat Mar 13 14:15:41 CET 2021


On Fri, Mar 12, 2021 at 09:35:47PM +0800, Bin Meng wrote:
> From: Vladimir Oltean <vladimir.oltean at nxp.com>
> 
> In drivers/net/phy/Kconfig, CONFIG_PHY_FIXED already depends on
> CONFIG_DM_ETH, so the function prototype definition when
> CONFIG_DM_ETH=n does nothing, so it can be dropped. It is also
> never reachable, since the whole function is already under #ifdef
> CONFIG_PHY_FIXED (which again, as I said, depends on CONFIG_DM_ETH=y).
> 
> Signed-off-by: Vladimir Oltean <vladimir.oltean at nxp.com>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Tested-by: Bin Meng <bmeng.cn at gmail.com>
> Message-Id: <20210216224804.3355044-3-olteanv at gmail.com>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---

Reviewed-by: Vladimir Oltean <vladimir.oltean at nxp.com>


More information about the U-Boot mailing list