Commit 1f03f260 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: dsa: bcm_sf2: Remove stats mutex

We no longer need a dedicated statistics mutex since we leverage
b53_common for statistics now.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 93c09704
...@@ -1062,7 +1062,6 @@ static int bcm_sf2_sw_probe(struct platform_device *pdev) ...@@ -1062,7 +1062,6 @@ static int bcm_sf2_sw_probe(struct platform_device *pdev)
dev_set_drvdata(&pdev->dev, priv); dev_set_drvdata(&pdev->dev, priv);
spin_lock_init(&priv->indir_lock); spin_lock_init(&priv->indir_lock);
mutex_init(&priv->stats_mutex);
mutex_init(&priv->cfp.lock); mutex_init(&priv->cfp.lock);
INIT_LIST_HEAD(&priv->cfp.rules_list); INIT_LIST_HEAD(&priv->cfp.rules_list);
......
...@@ -87,9 +87,6 @@ struct bcm_sf2_priv { ...@@ -87,9 +87,6 @@ struct bcm_sf2_priv {
/* Backing b53_device */ /* Backing b53_device */
struct b53_device *dev; struct b53_device *dev;
/* Mutex protecting access to the MIB counters */
struct mutex stats_mutex;
struct bcm_sf2_hw_params hw_params; struct bcm_sf2_hw_params hw_params;
struct bcm_sf2_port_status port_sts[DSA_MAX_PORTS]; struct bcm_sf2_port_status port_sts[DSA_MAX_PORTS];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment