]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/proc/proc_devtree.c
Merge branch 'core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip...
[linux-2.6-omap-h63xx.git] / fs / proc / proc_devtree.c
index abdf068bc27f4cb9b7699d4a6b478725aa25c180..de2bba5a3440ad2b4ba04d4f6fabbfe36a7f46f6 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright 1997 Paul Mackerras
  */
 #include <linux/errno.h>
+#include <linux/init.h>
 #include <linux/time.h>
 #include <linux/proc_fs.h>
 #include <linux/stat.h>
@@ -38,7 +39,7 @@ static int property_read_proc(char *page, char **start, off_t off,
                n = count;
        else
                *eof = 1;
-       memcpy(page, pp->value + off, n);
+       memcpy(page, (char *)pp->value + off, n);
        *start = page;
        return n;
 }
@@ -214,11 +215,10 @@ void proc_device_tree_add_node(struct device_node *np,
 /*
  * Called on initialization to set up the /proc/device-tree subtree
  */
-void proc_device_tree_init(void)
+void __init proc_device_tree_init(void)
 {
        struct device_node *root;
-       if ( !have_of )
-               return;
+
        proc_device_tree = proc_mkdir("device-tree", NULL);
        if (proc_device_tree == 0)
                return;