[PATCH v2 6/6] PCI: brcmstb: check return value of clk_prepare_enable()
Jim Quinlan
james.quinlan at broadcom.com
Mon Nov 30 16:11:43 EST 2020
The check was missing on PCIe resume.
Signed-off-by: Jim Quinlan <james.quinlan at broadcom.com>
---
drivers/pci/controller/pcie-brcmstb.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c
index 3983d6c80769..64cf534e44d0 100644
--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -1344,7 +1344,9 @@ static int brcm_pcie_resume(struct device *dev)
base = pcie->base;
brcm_set_regulators(pcie, TURN_ON);
- clk_prepare_enable(pcie->clk);
+ ret = clk_prepare_enable(pcie->clk);
+ if (ret)
+ return ret;
ret = brcm_phy_start(pcie);
if (ret)
--
2.17.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4167 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201130/a035ed8a/attachment.p7s>
More information about the linux-arm-kernel
mailing list