mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 11:11:26 +02:00
msm: pcie: Allow NULL as a valid return value for icc_get
As the ICC_GET stub function returns NULL and it's valid, PCIe controller driver must continue without returning an error. This is the case when CONFIG_INTERCONNECT is not set. Change-Id: I0065caf71fd790feb0dbe6b459f203e58685be95 Signed-off-by: Manoj Vishwanathan <mvishwan@codeaurora.org> Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
This commit is contained in:
parent
dfb52a5eec
commit
cdd2e05bb0
|
|
@ -4431,7 +4431,7 @@ static int msm_pcie_get_resources(struct msm_pcie_dev_t *dev,
|
|||
return ret;
|
||||
|
||||
dev->icc_path = of_icc_get(&pdev->dev, "icc_path");
|
||||
if (IS_ERR_OR_NULL(dev->icc_path)) {
|
||||
if (IS_ERR(dev->icc_path)) {
|
||||
ret = dev->icc_path ? PTR_ERR(dev->icc_path) : -EINVAL;
|
||||
|
||||
PCIE_ERR(dev, "PCIe: RC%d: failed to get ICC path: %d\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user