Patchwork powerpc: fix building hvc_opal.c

login
register
mail settings
Submitter Michael Neuling
Date Nov. 7, 2011, 6:12 a.m.
Message ID <26601.1320646348@neuling.org>
Download mbox | patch
Permalink /patch/124007/
State Not Applicable
Headers show

Comments

Michael Neuling - Nov. 7, 2011, 6:12 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>
--
Actually, this is the right fix.

sfr says this was a merge conflict between the module.h split up and the
powerpc tree, which were both merged by Linus today.

Patch

diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c
index 7b38512..ced26c8 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/export.h>
 
 #include <asm/hvconsole.h>
 #include <asm/prom.h>