Skip to content

Commit

Permalink
hwspinlock/u8500: include linux/module.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paul Gortmaker <[email protected]>
  • Loading branch information
AxelLin authored and Paul Gortmaker committed Nov 8, 2011
1 parent 4e549d6 commit 8f7346b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hwspinlock/u8500_hsem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8f7346b

Please sign in to comment.