Message ID | 20220818044051.814538-1-yangyingliang@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
Series | [-next] PCI: switch to use pci_info() | expand |
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; }
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@huawei.com> --- drivers/pci/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)