summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2019-05-08 17:34:01 -0400
committerBjorn Helgaas <bhelgaas@google.com>2019-05-09 17:45:21 -0400
commite07ca82a5fde88b5caf2b7025e97c7980c60abe1 (patch)
treec67cdc836fa6d7a19717d4842662d6ec5e00278d
parentb498b6872da1143d67ed588d21d3c3c496a987ee (diff)
PCI: pciehp: Remove pointless MY_NAME definition
MY_NAME is only used once and offers no benefit, so remove it. Link: https://lore.kernel.org/lkml/20190509141456.223614-11-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>
-rw-r--r--drivers/pci/hotplug/pciehp.h2
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h
index c206fd9cd3d7..8c51a04b8083 100644
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -25,8 +25,6 @@
25 25
26#include "../pcie/portdrv.h" 26#include "../pcie/portdrv.h"
27 27
28#define MY_NAME "pciehp"
29
30extern bool pciehp_poll_mode; 28extern bool pciehp_poll_mode;
31extern int pciehp_poll_time; 29extern int pciehp_poll_time;
32 30
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index 9ce93b1034bd..bd990e3371e3 100644
--- a/drivers/pci/hotplug/pciehp_hpc.c
+++ b/drivers/pci/hotplug/pciehp_hpc.c
@@ -48,7 +48,7 @@ static inline int pciehp_request_irq(struct controller *ctrl)
48 48
49 /* Installs the interrupt handler */ 49 /* Installs the interrupt handler */
50 retval = request_threaded_irq(irq, pciehp_isr, pciehp_ist, 50 retval = request_threaded_irq(irq, pciehp_isr, pciehp_ist,
51 IRQF_SHARED, MY_NAME, ctrl); 51 IRQF_SHARED, "pciehp", ctrl);
52 if (retval) 52 if (retval)
53 ctrl_err(ctrl, "Cannot get irq %d for the hotplug controller\n", 53 ctrl_err(ctrl, "Cannot get irq %d for the hotplug controller\n",
54 irq); 54 irq);