VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / arch / ppc64 / kernel / hvconsole.c
index 101e079..dedefb3 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <asm/hvcall.h>
 #include <asm/prom.h>
 #include <asm/hvconsole.h>
@@ -50,6 +51,8 @@ int hvc_get_chars(int index, char *buf, int count)
        return 0;
 }
 
+EXPORT_SYMBOL(hvc_get_chars);
+
 int hvc_put_chars(int index, const char *buf, int count)
 {
        unsigned long *lbuf = (unsigned long *) buf;
@@ -64,6 +67,8 @@ int hvc_put_chars(int index, const char *buf, int count)
        return -1;
 }
 
+EXPORT_SYMBOL(hvc_put_chars);
+
 /* return the number of client vterms present */
 /* XXX this requires an interface change to handle multiple discontiguous
  * vterms */
@@ -76,7 +81,7 @@ int hvc_count(int *start_termno)
         * we should _always_ be able to find one. */
        vty = of_find_node_by_name(NULL, "vty");
        if (vty && device_is_compatible(vty, "hvterm1")) {
-               u32 *termno = (u32 *)get_property(vty, "reg", 0);
+               u32 *termno = (u32 *)get_property(vty, "reg", NULL);
 
                if (termno && start_termno)
                        *start_termno = *termno;