Commit 8f7346bdea64f2e3d02b0bcaf456e391c4cba134

Authored by Axel Lin
Committed by Paul Gortmaker
1 parent 4e549d6d4a

hwspinlock/u8500: include linux/module.h

Include module.h to fix below build error:

  CC      drivers/hwspinlock/u8500_hsem.o
drivers/hwspinlock/u8500_hsem.c:177: error: 'THIS_MODULE' undeclared here (not in a function)
 [...]
drivers/hwspinlock/u8500_hsem.c:196: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/hwspinlock/u8500_hsem.c:196: warning: function declaration isn't a prototype
make[2]: *** [drivers/hwspinlock/u8500_hsem.o] Error 1
make[1]: *** [drivers/hwspinlock] Error 2
make: *** [drivers] Error 2

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/hwspinlock/u8500_hsem.c
... ... @@ -21,6 +21,7 @@
21 21 * General Public License for more details.
22 22 */
23 23  
  24 +#include <linux/module.h>
24 25 #include <linux/delay.h>
25 26 #include <linux/io.h>
26 27 #include <linux/pm_runtime.h>