diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2019-05-08 16:23:39 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-05-09 17:45:21 -0400 |
commit | b498b6872da1143d67ed588d21d3c3c496a987ee (patch) | |
tree | e492559b9886ab7dbb6809876879a66eec5b5996 /drivers/pci/hotplug | |
parent | 742ee16bc31f42b034a9b3b01731fd6dc20d0b19 (diff) |
PCI: pciehp: Remove pointless PCIE_MODULE_NAME definition
PCIE_MODULE_NAME is only used once and offers no benefit, so remove it.
Link: https://lore.kernel.org/lkml/20190509141456.223614-10-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r-- | drivers/pci/hotplug/pciehp_core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c index 1643e9aa261c..6ad0d86762cb 100644 --- a/drivers/pci/hotplug/pciehp_core.c +++ b/drivers/pci/hotplug/pciehp_core.c | |||
@@ -42,8 +42,6 @@ module_param(pciehp_poll_time, int, 0644); | |||
42 | MODULE_PARM_DESC(pciehp_poll_mode, "Using polling mechanism for hot-plug events or not"); | 42 | MODULE_PARM_DESC(pciehp_poll_mode, "Using polling mechanism for hot-plug events or not"); |
43 | MODULE_PARM_DESC(pciehp_poll_time, "Polling mechanism frequency, in seconds"); | 43 | MODULE_PARM_DESC(pciehp_poll_time, "Polling mechanism frequency, in seconds"); |
44 | 44 | ||
45 | #define PCIE_MODULE_NAME "pciehp" | ||
46 | |||
47 | static int set_attention_status(struct hotplug_slot *slot, u8 value); | 45 | static int set_attention_status(struct hotplug_slot *slot, u8 value); |
48 | static int get_power_status(struct hotplug_slot *slot, u8 *value); | 46 | static int get_power_status(struct hotplug_slot *slot, u8 *value); |
49 | static int get_latch_status(struct hotplug_slot *slot, u8 *value); | 47 | static int get_latch_status(struct hotplug_slot *slot, u8 *value); |
@@ -307,7 +305,7 @@ static int pciehp_runtime_resume(struct pcie_device *dev) | |||
307 | #endif /* PM */ | 305 | #endif /* PM */ |
308 | 306 | ||
309 | static struct pcie_port_service_driver hpdriver_portdrv = { | 307 | static struct pcie_port_service_driver hpdriver_portdrv = { |
310 | .name = PCIE_MODULE_NAME, | 308 | .name = "pciehp", |
311 | .port_type = PCIE_ANY_PORT, | 309 | .port_type = PCIE_ANY_PORT, |
312 | .service = PCIE_PORT_SERVICE_HP, | 310 | .service = PCIE_PORT_SERVICE_HP, |
313 | 311 | ||