diff options
| author | Quentin Schulz <[email protected]> | 2025-11-19 17:43:48 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-12-05 10:34:52 -0600 |
| commit | 715107089fb8823a4419f3a3bf2f26816450324c (patch) | |
| tree | a0919f157498cd1d160ee873801e021008be00e7 /include | |
| parent | 914acbdba3c128a035da4ab371efef1e91cebdfe (diff) | |
net: remove unreachable legacy LED code
The code is guarded by a condition none of the defconfigs meet (that is
CONFIG_SYS_FAULT_ECHO_LINK_DOWN and CONFIG_LED_STATUS_RED both enabled),
so we can remove the unreachable code sections.
When doing that, there's no caller for miiphy_link anymore, so it can be
removed.
This in turns makes CONFIG_SYS_FAULT_ECHO_LINK_DOWN and
CONFIG_SYS_FAULT_MII_ADDR unused so they are removed as well.
Signed-off-by: Quentin Schulz <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/miiphy.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/miiphy.h b/include/miiphy.h index 96afe5f4030..817d77add37 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -29,9 +29,6 @@ int miiphy_reset(const char *devname, unsigned char addr); int miiphy_speed(const char *devname, unsigned char addr); int miiphy_duplex(const char *devname, unsigned char addr); int miiphy_is_1000base_x(const char *devname, unsigned char addr); -#ifdef CONFIG_SYS_FAULT_ECHO_LINK_DOWN -int miiphy_link(const char *devname, unsigned char addr); -#endif int miiphy_set_current_dev(const char *devname); const char *miiphy_get_current_dev(void); |
