ACPI: PCI: Remove unused ACPICA debug code
authorHanjun Guo <guohanjun@huawei.com>
Thu, 24 Sep 2020 02:57:02 +0000 (10:57 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Sep 2020 16:25:51 +0000 (18:25 +0200)
The ACPICA debug code _COMPONENT and ACPI_MODULE_NAME() are
not used, so can be removed.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
[ rjw: Subject edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_root.c
drivers/acpi/pci_slot.c

index f90e841c59f5f62e4af555087d1bbc28d6bf1d14..7a6abd3d10ef7e51ba22ff19690c1bf84e1278ae 100644 (file)
@@ -24,8 +24,6 @@
 
 #include "internal.h"
 
-#define _COMPONENT             ACPI_PCI_COMPONENT
-ACPI_MODULE_NAME("pci_root");
 #define ACPI_PCI_ROOT_CLASS            "pci_bridge"
 #define ACPI_PCI_ROOT_DEVICE_NAME      "PCI Root Bridge"
 static int acpi_pci_root_add(struct acpi_device *device,
index ca2461d1bf14e0ccee361060bbf4096dbf334d40..d6cb2c27a23b2e29321f8b463f1cdee9f6e63777 100644 (file)
@@ -28,9 +28,6 @@
 
 static int check_sta_before_sun;
 
-#define _COMPONENT             ACPI_PCI_COMPONENT
-ACPI_MODULE_NAME("pci_slot");
-
 #define SLOT_NAME_SIZE 21              /* Inspired by #define in acpiphp.h */
 
 struct acpi_pci_slot {