提交 f2b775f5 编写于 作者: B Bjorn Helgaas

PCI: shpchp: Use dev_printk() for OSHP-related messages

Use dev_printk() for messages related to requesting control of SHPC hotplug
via the OSHP method.
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 96a621e0
...@@ -96,7 +96,7 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev) ...@@ -96,7 +96,7 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev)
if (!handle) { if (!handle) {
/* /*
* This hotplug controller was not listed in the ACPI name * This hotplug controller was not listed in the ACPI name
* space at all. Try to get acpi handle of parent pci bus. * space at all. Try to get ACPI handle of parent PCI bus.
*/ */
struct pci_bus *pbus; struct pci_bus *pbus;
for (pbus = pdev->bus; pbus; pbus = pbus->parent) { for (pbus = pdev->bus; pbus; pbus = pbus->parent) {
...@@ -108,8 +108,8 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev) ...@@ -108,8 +108,8 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev)
while (handle) { while (handle) {
acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); acpi_get_name(handle, ACPI_FULL_PATHNAME, &string);
dbg("Trying to get hotplug control for %s\n", pci_info(pdev, "Requesting control of SHPC hotplug via OSHP (%s)\n",
(char *)string.pointer); (char *)string.pointer);
status = acpi_run_oshp(handle); status = acpi_run_oshp(handle);
if (ACPI_SUCCESS(status)) if (ACPI_SUCCESS(status))
goto got_one; goto got_one;
...@@ -121,13 +121,12 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev) ...@@ -121,13 +121,12 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev)
break; break;
} }
no_control: no_control:
dbg("Cannot get control of hotplug hardware for pci %s\n", pci_info(pdev, "Cannot get control of SHPC hotplug\n");
pci_name(pdev));
kfree(string.pointer); kfree(string.pointer);
return -ENODEV; return -ENODEV;
got_one: got_one:
dbg("Gained control for hotplug HW for pci %s (%s)\n", pci_info(pdev, "Gained control of SHPC hotplug (%s)\n",
pci_name(pdev), (char *)string.pointer); (char *)string.pointer);
kfree(string.pointer); kfree(string.pointer);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册