Преглед изворни кода

proc_devtree: include linux/of.h

Currenly, proc_devtree.c depends on asm/prom.h to include linux/of.h, to
provide some device-tree definitions (eg, struct property).

Instead, include linux/of.h directly. We still need asm/prom.h for
HAVE_ARCH_DEVTREE_FIXUPS.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Jeremy Kerr пре 15 година
родитељ
комит
50ab2fe147
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      fs/proc/proc_devtree.c

+ 1 - 0
fs/proc/proc_devtree.c

@@ -10,6 +10,7 @@
 #include <linux/seq_file.h>
 #include <linux/seq_file.h>
 #include <linux/stat.h>
 #include <linux/stat.h>
 #include <linux/string.h>
 #include <linux/string.h>
+#include <linux/of.h>
 #include <asm/prom.h>
 #include <asm/prom.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 #include "internal.h"
 #include "internal.h"