powerpc: fix building hvc_opal.c

Submitted by Michael Neuling on Nov. 7, 2011, 6:05 a.m.

Details

Message ID 26327.1320645941@neuling.org
State Not Applicable
Headers show

Commit Message

Michael Neuling Nov. 7, 2011, 6:05 a.m.
Fix building following build error:
drivers/tty/hvc/hvc_opal.c:244:12: error: 'THIS_MODULE' undeclared here (not in a function)

Signed-off-by: Michael Neuling <mikey@neuling.org>

Patch hide | download patch | download mbox

diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c
index 7b38512..cb3938f 100644
--- a/drivers/tty/hvc/hvc_opal.c
+++ b/drivers/tty/hvc/hvc_opal.c
@@ -28,6 +28,7 @@ 
 #include <linux/console.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/module.h>
 
 #include <asm/hvconsole.h>
 #include <asm/prom.h>