summaryrefslogtreecommitdiff
path: root/linux/pcmcia-cs/include/linux/init.h
blob: dae55c289443f709677de367ed1d77aa3c7c7a55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _COMPAT_INIT_H
#define _COMPAT_INIT_H

#include <linux/version.h>

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)) && defined(MODULE)
#define __init
#define __initdata
#define __exit
#define __exitdata
#define __devinit
#define __devinitdata
#define __devexit
#define __devexitdata
#define module_init(x) int init_module(void) { return x(); }
#define module_exit(x) void cleanup_module(void) { x(); }
#else
#include_next <linux/init.h>
#endif

#ifndef __devexit_p
#define __devexit_p(x) (x)
#endif

#endif /* _COMPAT_INIT_H */