hwspinlock/u8500: include linux/module.h
authorAxel Lin <axel.lin@gmail.com>
Sun, 6 Nov 2011 13:16:51 +0000 (21:16 +0800)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 8 Nov 2011 02:45:14 +0000 (21:45 -0500)
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>
drivers/hwspinlock/u8500_hsem.c

index 143461a95ae4adc8bd75557aa8e76f5a2d298b9f..0156af510032f442ae9f65368afeede6b50fabd5 100644 (file)
@@ -21,6 +21,7 @@
  * General Public License for more details.
  */
 
+#include <linux/module.h>
 #include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/pm_runtime.h>