summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorJim Quinlan <jquinlan@broadcom.com>2020-05-07 22:15:40 +0200
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-05-11 12:46:39 +0200
commitb382e4a0a18f4abfd4d53f32a03dd6bb60df758a (patch)
tree54cd1923af081d2a5b6c5916e06c22259df94f39 /drivers/pci
parentPCI: brcmstb: Assert fundamental reset on initialization (diff)
downloadlinux-b382e4a0a18f4abfd4d53f32a03dd6bb60df758a.tar.xz
linux-b382e4a0a18f4abfd4d53f32a03dd6bb60df758a.zip
PCI: brcmstb: Don't clk_put() a managed clock
clk_put() was being invoked on a clock obtained by devm_clk_get_optional(). Link: https://lore.kernel.org/r/20200507201544.43432-2-james.quinlan@broadcom.com Signed-off-by: Jim Quinlan <jquinlan@broadcom.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/controller/pcie-brcmstb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c
index 9aa4cdc7557e..e847528c072f 100644
--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -900,7 +900,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)