diff options
author | Robert Richter <rrichter@amd.com> | 2022-10-18 16:23:32 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2022-11-14 21:37:08 +0300 |
commit | 58eef878fcd1f44612445b5cdde598f04b940da8 (patch) | |
tree | 3e50fac9fd3fa90053a28d5742c788b743e8b17d /drivers/cxl/core/pci.c | |
parent | f3cd264c4ec1ab9b8918f3b083cfc13c5e7c26b7 (diff) | |
download | linux-58eef878fcd1f44612445b5cdde598f04b940da8.tar.xz |
cxl: Unify debug messages when calling devm_cxl_add_dport()
CXL dports are added in a couple of code paths using
devm_cxl_add_dport(). Debug messages are individually generated, but are
incomplete and inconsistent. Change this by moving its generation to
devm_cxl_add_dport(). This unifies the messages and reduces code
duplication. Also, generate messages on failure. Use a
__devm_cxl_add_dport() wrapper to keep the readability of the error
exits.
Signed-off-by: Robert Richter <rrichter@amd.com>
Link: https://lore.kernel.org/r/20221018132341.76259-5-rrichter@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/core/pci.c')
-rw-r--r-- | drivers/cxl/core/pci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cxl/core/pci.c b/drivers/cxl/core/pci.c index 9240df53ed87..0dbbe8d39b07 100644 --- a/drivers/cxl/core/pci.c +++ b/drivers/cxl/core/pci.c @@ -62,8 +62,6 @@ static int match_add_dports(struct pci_dev *pdev, void *data) } ctx->count++; - dev_dbg(&port->dev, "add dport%d: %s\n", port_num, dev_name(&pdev->dev)); - return 0; } |