mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
net: dsa: Remove hwmon support
Only the Marvell mv88e6xxx DSA driver made use of the HWMON support in DSA. The temperature sensor registers are actually in the embedded PHYs, and the PHY driver now supports it. So remove all HWMON support from DSA and drivers. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0b04680fda
commit
cf1a56a4cf
8 changed files with 0 additions and 350 deletions
|
@ -316,8 +316,6 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, struct device *parent)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
dsa_hwmon_register(ds);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -376,8 +374,6 @@ static void dsa_switch_destroy(struct dsa_switch *ds)
|
|||
{
|
||||
int port;
|
||||
|
||||
dsa_hwmon_unregister(ds);
|
||||
|
||||
/* Destroy network devices for physical switch ports. */
|
||||
for (port = 0; port < DSA_MAX_PORTS; port++) {
|
||||
if (!(ds->enabled_port_mask & (1 << port)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue