hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/x86/xen/platform-pci-unplug.c
....@@ -1,28 +1,17 @@
1
+// SPDX-License-Identifier: GPL-2.0
2
+
13 /******************************************************************************
24 * platform-pci-unplug.c
35 *
46 * Xen platform PCI device driver
57 * Copyright (c) 2010, Citrix
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms and conditions of the GNU General Public License,
9
- * version 2, as published by the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope it will be useful, but WITHOUT
12
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
- * more details.
15
- *
16
- * You should have received a copy of the GNU General Public License along with
17
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18
- * Place - Suite 330, Boston, MA 02111-1307 USA.
19
- *
208 */
219
2210 #include <linux/init.h>
2311 #include <linux/io.h>
2412 #include <linux/export.h>
2513
14
+#include <xen/xen.h>
2615 #include <xen/platform_pci.h>
2716 #include "xen-ops.h"
2817
....@@ -30,7 +19,6 @@
3019 #define XEN_PLATFORM_ERR_PROTOCOL -2
3120 #define XEN_PLATFORM_ERR_BLACKLIST -3
3221
33
-#ifdef CONFIG_XEN_PVHVM
3422 /* store the value of xen_emul_unplug after the unplug is done */
3523 static int xen_platform_pci_unplug;
3624 static int xen_emul_unplug;
....@@ -218,4 +206,3 @@
218206 return 0;
219207 }
220208 early_param("xen_emul_unplug", parse_xen_emul_unplug);
221
-#endif