]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: brcmstb: Fix error return code in brcm_pcie_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 8 Mar 2021 13:56:19 +0000 (13:56 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 22 Mar 2021 17:48:52 +0000 (17:48 +0000)
commit697be51c25b65b1651d82957df32755014b551d0
tree64146cffcf8e2759648422fe81cd81cc83c88222
parent219c9076286fd92026e818ab1375558e5b20649f
PCI: brcmstb: Fix error return code in brcm_pcie_probe()

Fix to return negative error code -ENODEV from the unsupported revision
error handling case instead of 0, as done elsewhere in this function.

Link: https://lore.kernel.org/r/20210308135619.19133-1-weiyongjun1@huawei.com
Fixes: 936849df22e3 ("PCI: brcmstb: support BCM4908 with external PERST# signal controller")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/pci/controller/pcie-brcmstb.c