fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / arch / m68k / sun3 / idprom.c
index 9939be8..dca6ab6 100644 (file)
@@ -6,6 +6,7 @@
  * Sun3/3x models added by David Monro (davidm@psrg.cs.usyd.edu.au)
  */
 
+#include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/init.h>
@@ -16,6 +17,8 @@
 #include <asm/machines.h>  /* Fun with Sun released architectures. */
 
 struct idprom *idprom;
+EXPORT_SYMBOL(idprom);
+
 static struct idprom idprom_buffer;
 
 /* Here is the master table of Sun machines which use some implementation
@@ -67,7 +70,7 @@ static void __init display_system_type(unsigned char machtype)
                                prom_getproperty(prom_root_node, "banner-name",
                                                 sysname, sizeof(sysname));
                                printk("TYPE: %s\n", sysname);
-#endif                         
+#endif
                        }
                        return;
                }
@@ -83,7 +86,7 @@ void sun3_get_model(unsigned char* model)
 
        for (i = 0; i < NUM_SUN_MACHINES; i++) {
                if(Sun_Machines[i].id_machtype == idprom->id_machtype) {
-                               strcpy(model, Sun_Machines[i].name);
+                       strcpy(model, Sun_Machines[i].name);
                        return;
                }
        }