of: merge phandle, ihandle and struct property
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 15 Oct 2009 16:57:46 +0000 (10:57 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 15 Oct 2009 16:57:46 +0000 (10:57 -0600)
Merge of common code duplicated between Sparc, PowerPC and Microblaze

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/microblaze/include/asm/prom.h
arch/powerpc/include/asm/prom.h
arch/sparc/include/asm/prom.h
include/linux/of.h

index 66368896f922d647ddb4afac0d536fd6f6aadda0..11cb48419c7ddc4a8df65a4f60d5c657d766a945 100644 (file)
@@ -73,16 +73,6 @@ struct boot_param_header {
        u32     dt_struct_size; /* size of the DT structure block */
 };
 
-typedef u32 phandle;
-typedef u32 ihandle;
-
-struct property {
-       char    *name;
-       int     length;
-       void    *value;
-       struct property *next;
-};
-
 struct device_node {
        const char *name;
        const char *type;
index b0a84ea5f8eda813441e1001105c699ce3c8093d..c236326177a840bd485283039e2ee1b25060619e 100644 (file)
@@ -71,18 +71,6 @@ struct boot_param_header
        u32     dt_struct_size;         /* size of the DT structure block */
 };
 
-
-
-typedef u32 phandle;
-typedef u32 ihandle;
-
-struct property {
-       char    *name;
-       int     length;
-       void    *value;
-       struct property *next;
-};
-
 struct device_node {
        const char *name;
        const char *type;
index 0733170e02ca5ea621ad2fb06eeff144a5b8c45f..b34f988a2aad4de98558bb7e0ecc8bba9a906b24 100644 (file)
 #define of_prop_cmp(s1, s2)            strcasecmp((s1), (s2))
 #define of_node_cmp(s1, s2)            strcmp((s1), (s2))
 
-typedef u32 phandle;
-typedef u32 ihandle;
-
-struct property {
-       char    *name;
-       int     length;
-       void    *value;
-       struct property *next;
-       unsigned long _flags;
-       unsigned int unique_id;
-};
-
 struct of_irq_controller;
 struct device_node {
        const char      *name;
index 7be2d1043c1613b84bdaeb26c230e82e0bd508ef..4668b298479a7a98f1c1b3d72556f5811fe304f3 100644 (file)
 #include <linux/bitops.h>
 #include <linux/mod_devicetable.h>
 
+typedef u32 phandle;
+typedef u32 ihandle;
+
+struct property {
+       char    *name;
+       int     length;
+       void    *value;
+       struct property *next;
+       unsigned long _flags;
+       unsigned int unique_id;
+};
+
 #include <asm/prom.h>
 
 /* flag descriptions */
This page took 0.02728 seconds and 5 git commands to generate.