1
0
포크 0

init.h: Protect against multiple includes

This commit is contained in:
Aaron Lindsay 2012-10-09 23:26:28 -04:00
부모 c90edb451d
커밋 03dfa30b70
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -18,6 +18,9 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef INIT_H
#define INIT_H
struct initcall_func {
void (*fptr)();
};
@ -29,3 +32,5 @@ struct initcall_func {
#define early_initcall(func) _initcall("early", 0, func)
#define driversubsys_initcall(func) _initcall("driversubsys", 1, func)
#define device_initcall(func) _initcall("device", 2, func)
#endif /* INIT_H */