···128128129129 bool suppress_bind_attrs; /* disables bind/unbind via sysfs */130130131131-#if defined(CONFIG_OF)132131 const struct of_device_id *of_match_table;133133-#endif134132135133 int (*probe) (struct device *dev);136134 int (*remove) (struct device *dev);···439441 override */440442 /* arch specific additions */441443 struct dev_archdata archdata;442442-#ifdef CONFIG_OF443443- struct device_node *of_node;444444-#endif444444+445445+ struct device_node *of_node; /* associated device tree node */445446446447 dev_t devt; /* dev_t, creates the sysfs "dev" */447448
-2
include/linux/i2c.h
···258258 unsigned short addr;259259 void *platform_data;260260 struct dev_archdata *archdata;261261-#ifdef CONFIG_OF262261 struct device_node *of_node;263263-#endif264262 int irq;265263};266264
+2-2
include/linux/of.h
···23232424#include <asm/byteorder.h>25252626-#ifdef CONFIG_OF2727-2826typedef u32 phandle;2927typedef u32 ihandle;3028···6264 struct of_irq_controller *irq_trans;6365#endif6466};6767+6868+#ifdef CONFIG_OF65696670/* Pointer for first entry in chain of all nodes. */6771extern struct device_node *allnodes;