Message ID | 20200430185522.4116-1-james.quinlan@broadcom.com |
---|---|
State | New |
Headers | show |
Series | [1/5] PCI: brcmstb: don't clk_put() a managed clock | expand |
On 4/30/20 11:55 AM, Jim Quinlan wrote: > From: Jim Quinlan <jquinlan@broadcom.com> > > clk_put() was being invoked on a clock obtained by > devm_clk_get_optional(). > > Signed-off-by: Jim Quinlan <jquinlan@broadcom.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Fixes: c0452137034b ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver")
diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c index 6d79d14527a6..454917ee9241 100644 --- a/drivers/pci/controller/pcie-brcmstb.c +++ b/drivers/pci/controller/pcie-brcmstb.c @@ -899,7 +899,6 @@ static void __brcm_pcie_remove(struct brcm_pcie *pcie) brcm_msi_remove(pcie); brcm_pcie_turn_off(pcie); clk_disable_unprepare(pcie->clk); - clk_put(pcie->clk); } static int brcm_pcie_remove(struct platform_device *pdev)