Skip to content

Commit cfcd6ca

Browse files
aloktiwaMani-Sadhasivam
authored andcommitted
PCI: j721e: Fix incorrect error message in probe()
The probe() function prints "pm_runtime_get_sync failed" when j721e_pcie_ctrl_init() returns an error. This is misleading since the failure is not from pm_runtime, but from the controller init routine. Update the error message to correctly reflect the source. No functional changes. Fixes: f3e2591 ("PCI: j721e: Add TI J721E PCIe driver") Signed-off-by: Alok Tiwari <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Siddharth Vadapalli <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent f842d33 commit cfcd6ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/controller/cadence/pci-j721e.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
575575

576576
ret = j721e_pcie_ctrl_init(pcie);
577577
if (ret < 0) {
578-
dev_err_probe(dev, ret, "pm_runtime_get_sync failed\n");
578+
dev_err_probe(dev, ret, "j721e_pcie_ctrl_init failed\n");
579579
goto err_get_sync;
580580
}
581581

0 commit comments

Comments
 (0)