hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/acpi/acpi_drivers.h
....@@ -1,22 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * acpi_drivers.h ($Revision: 31 $)
34 *
45 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
56 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
6
- *
7
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or (at
12
- * your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful, but
15
- * WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
- * General Public License for more details.
18
- *
19
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
207 */
218
229 #ifndef __ACPI_DRIVERS_H__
....@@ -25,7 +12,7 @@
2512 #define ACPI_MAX_STRING 80
2613
2714 /*
28
- * Please update drivers/acpi/debug.c and Documentation/acpi/debug.txt
15
+ * Please update drivers/acpi/debug.c and Documentation/firmware-guide/acpi/debug.rst
2916 * if you add to this list.
3017 */
3118 #define ACPI_BUS_COMPONENT 0x00010000
....@@ -88,7 +75,14 @@
8875
8976 struct pci_bus;
9077
78
+#ifdef CONFIG_PCI
9179 struct pci_dev *acpi_get_pci_dev(acpi_handle);
80
+#else
81
+static inline struct pci_dev *acpi_get_pci_dev(acpi_handle handle)
82
+{
83
+ return NULL;
84
+}
85
+#endif
9286
9387 /* Arch-defined function to add a bus to the system */
9488