.. | .. |
---|
217 | 217 | int stmmac_mdio_unregister(struct net_device *ndev); |
---|
218 | 218 | int stmmac_mdio_register(struct net_device *ndev); |
---|
219 | 219 | int stmmac_mdio_reset(struct mii_bus *mii); |
---|
220 | | -void stmmac_set_ethtool_ops(struct net_device *netdev); |
---|
221 | 220 | |
---|
| 221 | +#ifdef CONFIG_STMMAC_ETHTOOL |
---|
| 222 | +void stmmac_set_ethtool_ops(struct net_device *netdev); |
---|
| 223 | +#else |
---|
| 224 | +static inline void stmmac_set_ethtool_ops(struct net_device *netdev) |
---|
| 225 | +{ |
---|
| 226 | +} |
---|
| 227 | +#endif |
---|
| 228 | + |
---|
| 229 | +#ifdef CONFIG_STMMAC_PTP |
---|
222 | 230 | void stmmac_ptp_register(struct stmmac_priv *priv); |
---|
223 | 231 | void stmmac_ptp_unregister(struct stmmac_priv *priv); |
---|
| 232 | +#else |
---|
| 233 | +static inline void stmmac_ptp_register(struct stmmac_priv *priv) |
---|
| 234 | +{ |
---|
| 235 | +} |
---|
| 236 | + |
---|
| 237 | +static inline void stmmac_ptp_unregister(struct stmmac_priv *priv) |
---|
| 238 | +{ |
---|
| 239 | +} |
---|
| 240 | +#endif |
---|
224 | 241 | int stmmac_resume(struct device *dev); |
---|
225 | 242 | int stmmac_suspend(struct device *dev); |
---|
226 | 243 | int stmmac_dvr_remove(struct device *dev); |
---|