hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/include/asm/intel-mid.h
....@@ -1,12 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * intel-mid.h: Intel MID specific setup code
34 *
45 * (C) Copyright 2009 Intel Corporation
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; version 2
9
- * of the License.
106 */
117 #ifndef _ASM_X86_INTEL_MID_H
128 #define _ASM_X86_INTEL_MID_H
....@@ -47,7 +43,7 @@
4743
4844 #define sfi_device(i) \
4945 static const struct devs_id *const __intel_mid_sfi_##i##_dev __used \
50
- __attribute__((__section__(".x86_intel_mid_dev.init"))) = &i
46
+ __section(".x86_intel_mid_dev.init") = &i
5147
5248 /**
5349 * struct mid_sd_board_info - template for SD device creation
....@@ -92,10 +88,16 @@
9288 return (intel_mid_identify_cpu() == INTEL_MID_CPU_CHIP_PENWELL);
9389 }
9490
91
+extern void intel_scu_devices_create(void);
92
+extern void intel_scu_devices_destroy(void);
93
+
9594 #else /* !CONFIG_X86_INTEL_MID */
9695
9796 #define intel_mid_identify_cpu() 0
9897 #define intel_mid_has_msic() 0
98
+
99
+static inline void intel_scu_devices_create(void) { }
100
+static inline void intel_scu_devices_destroy(void) { }
99101
100102 #endif /* !CONFIG_X86_INTEL_MID */
101103
....@@ -118,9 +120,6 @@
118120
119121 #define SFI_MTMR_MAX_NUM 8
120122 #define SFI_MRTC_MAX 8
121
-
122
-extern void intel_scu_devices_create(void);
123
-extern void intel_scu_devices_destroy(void);
124123
125124 /* VRTC timer */
126125 #define MRST_VRTC_MAP_SZ 1024