aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/acpiphp_glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_glue.c')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 5db6f1839dad..e2198a2feeca 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0+
1/* 2/*
2 * ACPI PCI HotPlug glue functions to ACPI CA subsystem 3 * ACPI PCI HotPlug glue functions to ACPI CA subsystem
3 * 4 *
@@ -11,21 +12,6 @@
11 * 12 *
12 * All rights reserved. 13 * All rights reserved.
13 * 14 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or (at
17 * your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
22 * NON INFRINGEMENT. See the GNU General Public License for more
23 * details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 *
29 * Send feedback to <kristen.c.accardi@intel.com> 15 * Send feedback to <kristen.c.accardi@intel.com>
30 * 16 *
31 */ 17 */
@@ -811,10 +797,8 @@ void acpiphp_enumerate_slots(struct pci_bus *bus)
811 797
812 handle = adev->handle; 798 handle = adev->handle;
813 bridge = kzalloc(sizeof(struct acpiphp_bridge), GFP_KERNEL); 799 bridge = kzalloc(sizeof(struct acpiphp_bridge), GFP_KERNEL);
814 if (!bridge) { 800 if (!bridge)
815 acpi_handle_err(handle, "No memory for bridge object\n");
816 return; 801 return;
817 }
818 802
819 INIT_LIST_HEAD(&bridge->slots); 803 INIT_LIST_HEAD(&bridge->slots);
820 kref_init(&bridge->ref); 804 kref_init(&bridge->ref);