pandora: create proc entry early
[pandora-kernel.git] / arch / arm / mach-omap2 / board-omap3pandora.c
index 0b6a3d4..6a9d4ad 100644 (file)
@@ -704,6 +704,22 @@ static void __init omap3pandora_map_io(void)
        omap34xx_map_common_io();
 }
 
+/* HACK: create it here, so that others don't need to bother */
+#ifdef CONFIG_PROC_FS
+#include <linux/proc_fs.h>
+
+static int __init proc_pandora_init(void)
+{
+       struct proc_dir_entry *ret;
+
+       ret = proc_mkdir("pandora", NULL);
+       if (!ret)
+               return -ENOMEM;
+       return 0;
+}
+fs_initcall(proc_pandora_init);
+#endif
+
 MACHINE_START(OMAP3_PANDORA, "Pandora Handheld Console")
        .phys_io        = 0x48000000,
        .io_pg_offst    = ((0xfa000000) >> 18) & 0xfffc,