Skip to contentSkip to conversation

dt: include linux/errno.h in linux/of_address.h

PATCH New Grant Likely 1 participant 1 message Jun 14, 2011 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt: include linux/errno.h in linux/of_address.h

of_address.h makes reference to some of the error code #defines, so it needs to include errno.h. If CONFIG_PCI is not selected, then some files will fail to compile.

---
 include/linux/of_address.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/of_address.h +1 -0
index 4fbea28..b651028 100644
@@ -1,6 +1,7 @@
 #ifndef __OF_ADDRESS_H
 #define __OF_ADDRESS_H
 #include <linux/ioport.h>
+#include <linux/errno.h>
 #include <linux/of.h>
 
 extern int of_address_count(struct device_node *np);