]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx: Fix checking pd_pcie_phy device link addition
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 31 Jan 2019 20:59:56 +0000 (14:59 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 31 Jan 2019 21:01:01 +0000 (15:01 -0600)
commit8bb2a70187e0645a763539174f8d6ca484b782c2
treecf983b3c4fb89f3ea13e98865ffce4910656350d
parent362dfb64df4ba31c08405f9457a8286456f1a38a
PCI: imx: Fix checking pd_pcie_phy device link addition

The check on the device_link_add() return value is wrong;
this leads to erroneous code execution, so fix it.

Fixes: 3cf92519da65 ("PCI: imx: Add multi-pd support")
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