Skip to content

Commit

Permalink
net: enetc: remove the mm_lock from the ENETC v4 driver
Browse files Browse the repository at this point in the history
Currently, the ENETC v4 driver has not added the MAC merge layer support
in the upstream, so the mm_lock is not initialized and used, so remove
the mm_lock from the driver.

Fixes: 99100d0 ("net: enetc: add preliminary support for i.MX95 ENETC PF")
Cc: stable@vger.kernel.org
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20250224111251.1061098-8-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Wei Fang authored and Jakub Kicinski committed Feb 26, 2025
1 parent 8e43dec commit 119049b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/freescale/enetc/enetc4_pf.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,6 @@ static int enetc4_pf_netdev_create(struct enetc_si *si)
err_alloc_msix:
err_config_si:
err_clk_get:
mutex_destroy(&priv->mm_lock);
free_netdev(ndev);

return err;
Expand Down

0 comments on commit 119049b

Please sign in to comment.