diff options
Diffstat (limited to 'drivers/pci/hotplug/pciehp_hpc.c')
-rw-r--r-- | drivers/pci/hotplug/pciehp_hpc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c index 5127f3f41821..b2255736ac81 100644 --- a/drivers/pci/hotplug/pciehp_hpc.c +++ b/drivers/pci/hotplug/pciehp_hpc.c | |||
@@ -773,14 +773,12 @@ static void pcie_shutdown_notification(struct controller *ctrl) | |||
773 | static int pcie_init_slot(struct controller *ctrl) | 773 | static int pcie_init_slot(struct controller *ctrl) |
774 | { | 774 | { |
775 | struct slot *slot; | 775 | struct slot *slot; |
776 | char name[32]; | ||
777 | 776 | ||
778 | slot = kzalloc(sizeof(*slot), GFP_KERNEL); | 777 | slot = kzalloc(sizeof(*slot), GFP_KERNEL); |
779 | if (!slot) | 778 | if (!slot) |
780 | return -ENOMEM; | 779 | return -ENOMEM; |
781 | 780 | ||
782 | snprintf(name, sizeof(name), "pciehp-%u", PSN(ctrl)); | 781 | slot->wq = alloc_workqueue("pciehp-%u", 0, 0, PSN(ctrl)); |
783 | slot->wq = alloc_workqueue(name, 0, 0); | ||
784 | if (!slot->wq) | 782 | if (!slot->wq) |
785 | goto abort; | 783 | goto abort; |
786 | 784 | ||