hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/firmware/pcdp.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Parse the EFI PCDP table to locate the console device.
34 *
....@@ -5,10 +6,6 @@
56 * Khalid Aziz <khalid.aziz@hp.com>
67 * Alex Williamson <alex.williamson@hp.com>
78 * Bjorn Helgaas <bjorn.helgaas@hp.com>
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 version 2 as
11
- * published by the Free Software Foundation.
129 */
1310
1411 #include <linux/acpi.h>
....@@ -83,6 +80,8 @@
8380 #endif
8481 }
8582
83
+extern unsigned long hcdp_phys;
84
+
8685 int __init
8786 efi_setup_pcdp_console(char *cmdline)
8887 {
....@@ -92,11 +91,11 @@
9291 int i, serial = 0;
9392 int rc = -ENODEV;
9493
95
- if (efi.hcdp == EFI_INVALID_TABLE_ADDR)
94
+ if (hcdp_phys == EFI_INVALID_TABLE_ADDR)
9695 return -ENODEV;
9796
98
- pcdp = early_memremap(efi.hcdp, 4096);
99
- printk(KERN_INFO "PCDP: v%d at 0x%lx\n", pcdp->rev, efi.hcdp);
97
+ pcdp = early_memremap(hcdp_phys, 4096);
98
+ printk(KERN_INFO "PCDP: v%d at 0x%lx\n", pcdp->rev, hcdp_phys);
10099
101100 if (strstr(cmdline, "console=hcdp")) {
102101 if (pcdp->rev < 3)