PCI: pciehp: Remove pointless MY_NAME definition
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 8 May 2019 21:34:01 +0000 (16:34 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 9 May 2019 21:45:21 +0000 (16:45 -0500)
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>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_hpc.c

index c206fd9cd3d7acddcdda0ea0c834697993780b00..8c51a04b8083e1d1d7a4894b90a95b8231214199 100644 (file)
@@ -25,8 +25,6 @@
 
 #include "../pcie/portdrv.h"
 
-#define MY_NAME        "pciehp"
-
 extern bool pciehp_poll_mode;
 extern int pciehp_poll_time;
 
index 9ce93b1034bdfcabb97531a71aac9f5a6e80effc..bd990e3371e31afa9ba130134c7741c765931b26 100644 (file)
@@ -48,7 +48,7 @@ static inline int pciehp_request_irq(struct controller *ctrl)
 
        /* Installs the interrupt handler */
        retval = request_threaded_irq(irq, pciehp_isr, pciehp_ist,
-                                     IRQF_SHARED, MY_NAME, ctrl);
+                                     IRQF_SHARED, "pciehp", ctrl);
        if (retval)
                ctrl_err(ctrl, "Cannot get irq %d for the hotplug controller\n",
                         irq);