]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix clock handling on remove path
authorWong Vee Khee <vee.khee.wong@intel.com>
Fri, 25 Sep 2020 09:54:06 +0000 (17:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 23:49:15 +0000 (16:49 -0700)
commitb2f339faba69fab5b58523628d72f2367ebeaab0
tree6d4a86f818dc6970599d60896b7c64c30d1259e0
parent32126bd819e92ff98abbeb08f5042f22a21af4bd
net: stmmac: Fix clock handling on remove path

While unloading the dwmac-intel driver, clk_disable_unprepare() is
being called twice in stmmac_dvr_remove() and
intel_eth_pci_remove(). This causes kernel panic on the second call.

Removing the second call of clk_disable_unprepare() in
intel_eth_pci_remove().

Fixes: 49a4d81c0927 ("stmmac: intel: Fix clock handling on error and remove paths")
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Voon Weifeng <weifeng.voon@intel.com>
Signed-off-by: Wong Vee Khee <vee.khee.wong@intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c