aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r--drivers/net/ethernet/sfc/mcdi_mon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/mcdi_mon.c b/drivers/net/ethernet/sfc/mcdi_mon.c
index fb7f65b59eb8..1d552f0664d7 100644
--- a/drivers/net/ethernet/sfc/mcdi_mon.c
+++ b/drivers/net/ethernet/sfc/mcdi_mon.c
@@ -222,6 +222,7 @@ efx_mcdi_mon_add_attr(struct efx_nic *efx, const char *name,
222 attr->index = index; 222 attr->index = index;
223 attr->type = type; 223 attr->type = type;
224 attr->limit_value = limit_value; 224 attr->limit_value = limit_value;
225 sysfs_attr_init(&attr->dev_attr.attr);
225 attr->dev_attr.attr.name = attr->name; 226 attr->dev_attr.attr.name = attr->name;
226 attr->dev_attr.attr.mode = S_IRUGO; 227 attr->dev_attr.attr.mode = S_IRUGO;
227 attr->dev_attr.show = reader; 228 attr->dev_attr.show = reader;