Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1550043
| From | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next 3/3] net: dsa: restore HWMON support in dsa2 |
| Date | 2017-01-03 19:20 +0100 |
| Message-ID | <sVBQJ-1Kc-15@gated-at.bofh.it> (permalink) |
| References | <sVBQJ-1Kc-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The HWMON support was only registered in the legacy DSA code. Register
it in the newer DSA code (dsa2) as well.
---
net/dsa/dsa2.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c
index 5fff951a0a49..668aa2974d01 100644
--- a/net/dsa/dsa2.c
+++ b/net/dsa/dsa2.c
@@ -348,6 +348,8 @@ static int dsa_ds_apply(struct dsa_switch_tree *dst, struct dsa_switch *ds)
continue;
}
+ dsa_hwmon_register(ds);
+
return 0;
}
@@ -356,6 +358,8 @@ static void dsa_ds_unapply(struct dsa_switch_tree *dst, struct dsa_switch *ds)
struct device_node *port;
u32 index;
+ dsa_hwmon_unregister(ds);
+
for (index = 0; index < DSA_MAX_PORTS; index++) {
port = ds->ports[index].dn;
if (!port)
--
2.11.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH net-next 3/3] net: dsa: restore HWMON support in dsa2 Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-01-03 19:20 +0100
csiph-web