]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ARM: CSR: PM: fix build error due to undeclared 'THIS_MODULE'
authorBarry Song <baohua.song@csr.com>
Thu, 17 Nov 2011 14:27:22 +0000 (22:27 +0800)
committerBarry Song <Barry.Song@csr.com>
Fri, 2 Dec 2011 03:03:41 +0000 (11:03 +0800)
In the new kernel, we will get the following compile error:
arch/arm/mach-prima2/pm.c:141: error: 'THIS_MODULE' undeclared
here (not in a function)
so include module.h head file explicitly

Signed-off-by: Barry Song <baohua.song@csr.com>
arch/arm/mach-prima2/pm.c

index cb53160f6c5d3127b961edbf102e70ab34733712..26ebb57719df5d3fbf389e46cb723b92029b8191 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/suspend.h>
 #include <linux/slab.h>
+#include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_device.h>