]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
of: fix implicit use of errno.h in include/linux/of.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sat, 29 Oct 2011 14:17:06 +0000 (10:17 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:32:28 +0000 (19:32 -0400)
It shows up as a build failure on MIPS, as it is used in
three of_property function stubs.

include/linux/of.h:275: error: 'ENOSYS' undeclared (first use in this function)
include/linux/of.h:282: error: 'ENOSYS' undeclared (first use in this function)
include/linux/of.h:295: error: 'ENOSYS' undeclared (first use in this function)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
include/linux/of.h

index 5dbe263462a94611518ebb81482d164ce5469d5d..c1f5118c59b4e6103fd84018cacbcdf03aa82fd6 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/spinlock.h>
 
 #include <asm/byteorder.h>
+#include <asm/errno.h>
 
 typedef u32 phandle;
 typedef u32 ihandle;