The current HWMON support in DSA in embedded in the legacy code. Extract it to its own file and register it in the newer DSA code.
Tested on ZII Rev B boards. Vivien Didelot (3): net: dsa: remove out label in dsa_switch_setup_one net: dsa: move HWMON support to its own file net: dsa: restore HWMON support in dsa2 net/dsa/Makefile | 1 + net/dsa/dsa.c | 171 +++++------------------------------------------------ net/dsa/dsa2.c | 4 ++ net/dsa/dsa_priv.h | 9 +++ net/dsa/hwmon.c | 149 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 178 insertions(+), 156 deletions(-) create mode 100644 net/dsa/hwmon.c -- 2.11.0