[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220818044051.814538-1-yangyingliang@huawei.com>
Date: Thu, 18 Aug 2022 12:40:51 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <linux-kernel@...r.kernel.org>, <linux-pci@...r.kernel.org>
CC: <bhelgaas@...gle.com>
Subject: [PATCH -next] PCI: switch to use pci_info()
Commit 7506dc798993 ("PCI: Add wrappers for dev_printk()") introduce
pci_info() helper. Switch to use pci_info() to simplify the code.
Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
---
drivers/pci/probe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index f2430da8a30b..e1572d41aa6d 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1454,7 +1454,7 @@ static int pci_scan_bridge_extend(struct pci_bus *bus, struct pci_dev *dev,
(child->number > bus->busn_res.end) ||
(child->number < bus->number) ||
(child->busn_res.end < bus->number)) {
- dev_info(&dev->dev, "devices behind bridge are unusable because %pR cannot be assigned for them\n",
+ pci_info(dev, "devices behind bridge are unusable because %pR cannot be assigned for them\n",
&child->busn_res);
break;
}
--
2.25.1
Powered by blists - more mailing lists