After Linux kernel3.8, put: __devinit, __devinitdata, __devinitconst, __devexit, __devexitdata, __devexitconst these are removed.
The error that occurred:
__devinit error expected ' = ' ' asm ' or ' __attribute__ ' before
Workaround:
#define __devexit
#define __devinitdata
#define __devinit
#define __devexit_p
For details, refer to:
A whole set of __dev ... Macros is no longer used or defined this is the list: __devinit, __devinitdata, __devinitconst, __devexit, __devexitdata, __devexitconst Background:these attributes were used on certain driver functions and data declarations, putting them in A separate section, could be discarded under certain circumstances. This functionality was no longer relevant, and the macros were removed in version 3.8 of the kernel. The macros should no longer be used. Just Remove the attributes any place they is used. See this commit:https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=54b956b903607
Linux kernel compilation __devinit error resolution