Skip to content

Commit

Permalink
net: pcs: xpcs: delete shim definition for mdio_xpcs_get_ops()
Browse files Browse the repository at this point in the history
CONFIG_STMMAC_ETH selects CONFIG_PCS_XPCS, so there should be no
situation where the shim should be needed.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vladimir Oltean authored and David S. Miller committed Jun 3, 2021
1 parent b596ce6 commit b81017a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/linux/pcs/pcs-xpcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ struct mdio_xpcs_ops {
int enable);
};

#if IS_ENABLED(CONFIG_PCS_XPCS)
struct mdio_xpcs_ops *mdio_xpcs_get_ops(void);
#else
static inline struct mdio_xpcs_ops *mdio_xpcs_get_ops(void)
{
return NULL;
}
#endif

#endif /* __LINUX_PCS_XPCS_H */

0 comments on commit b81017a

Please sign in to comment.