]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx: Fix probe failure without power domain
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 31 Jan 2019 20:59:50 +0000 (14:59 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 31 Jan 2019 20:59:50 +0000 (14:59 -0600)
commit362dfb64df4ba31c08405f9457a8286456f1a38a
tree376959921140c9578622b5ecdcb9b33069e5d7d1
parentf143da89f36153508e9bb72ffbb2a90bd4e99019
PCI: imx: Fix probe failure without power domain

On chips without a separate power domain for PCI (such as 6q/6qp) the
imx6_pcie_attach_pd() function incorrectly returns an error.

Fix by returning 0 if dev_pm_domain_attach_by_name() does not find
anything.

Fixes: 3cf92519da65 ("PCI: imx: Add multi-pd support")
Reported-by: Lukas F.Hartmann <lukas@mntmn.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pci-imx6.c