Browse Source

init.h: Protect against multiple includes

Aaron Lindsay 7 years ago
parent
commit
03dfa30b70
1 changed files with 5 additions and 0 deletions
  1. 5 0
      include/init.h

+ 5 - 0
include/init.h

@@ -18,6 +18,9 @@
18 18
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 19
  */
20 20
 
21
+#ifndef INIT_H
22
+#define INIT_H
23
+
21 24
 struct initcall_func {
22 25
 	void (*fptr)();
23 26
 };
@@ -29,3 +32,5 @@ struct initcall_func {
29 32
 #define early_initcall(func) _initcall("early", 0, func)
30 33
 #define driversubsys_initcall(func) _initcall("driversubsys", 1, func)
31 34
 #define device_initcall(func) _initcall("device", 2, func)
35
+
36
+#endif /* INIT_H */