Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -3
+1 -3
drivers/pci/hotplug/pciehp_core.c
··· 42 42 MODULE_PARM_DESC(pciehp_poll_mode, "Using polling mechanism for hot-plug events or not"); 43 43 MODULE_PARM_DESC(pciehp_poll_time, "Polling mechanism frequency, in seconds"); 44 44 45 - #define PCIE_MODULE_NAME "pciehp" 46 - 47 45 static int set_attention_status(struct hotplug_slot *slot, u8 value); 48 46 static int get_power_status(struct hotplug_slot *slot, u8 *value); 49 47 static int get_latch_status(struct hotplug_slot *slot, u8 *value); ··· 305 307 #endif /* PM */ 306 308 307 309 static struct pcie_port_service_driver hpdriver_portdrv = { 308 - .name = PCIE_MODULE_NAME, 310 + .name = "pciehp", 309 311 .port_type = PCIE_ANY_PORT, 310 312 .service = PCIE_PORT_SERVICE_HP, 311 313