linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fixup! PCI: brcmstb: Add control of subdevice voltage regulators
@ 2022-01-12  1:31 Jim Quinlan
  2022-01-12 17:51 ` Bjorn Helgaas
  2022-01-12 19:47 ` Bjorn Helgaas
  0 siblings, 2 replies; 7+ messages in thread
From: Jim Quinlan @ 2022-01-12  1:31 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, jim2101024, james.quinlan
  Cc: linux-pci, bcm-kernel-feedback-list

---
 drivers/pci/controller/pcie-brcmstb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c
index 8a3321314b74..4134f01acd87 100644
--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -1392,7 +1392,8 @@ static int brcm_pcie_resume(struct device *dev)
 err_reset:
 	reset_control_rearm(pcie->rescal);
 err_regulator:
-	regulator_bulk_disable(pcie->sr->num_supplies, pcie->sr->supplies);
+	if (pcie->sr)
+		regulator_bulk_disable(pcie->sr->num_supplies, pcie->sr->supplies);
 err_disable_clk:
 	clk_disable_unprepare(pcie->clk);
 	return ret;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-12 21:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12  1:31 [PATCH] fixup! PCI: brcmstb: Add control of subdevice voltage regulators Jim Quinlan
2022-01-12 17:51 ` Bjorn Helgaas
2022-01-12 18:00   ` Lorenzo Pieralisi
2022-01-12 18:57     ` Jim Quinlan
2022-01-12 21:50     ` Lukas Wunner
2022-01-12 21:55       ` Bjorn Helgaas
2022-01-12 19:47 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).