[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20120103154717.da9468b24d9665b593054c10@canb.auug.org.au>
Date: Tue, 3 Jan 2012 15:47:17 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Grant Likely <grant.likely@...retlab.ca>
Cc: linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
Rob Herring <rob.herring@...xeda.com>
Subject: linux-next: manual merge of the gpio tree with the devicetree tree
Hi Grant,
Today's linux-next merge of the gpio tree got a conflict in
include/linux/of.h between commit 3ecdd0515287 ("dt: add empty
of_get_node/of_put_node functions") from the devicetree tree and commit
15c9a0acc3f7 ("of: create of_phandle_args to simplify return of phandle
parsing data") from the gpio tree.
Just context changes. I fixed it up (see below) and can carry the fix as
necessary.
--
Cheers,
Stephen Rothwell sfr@...b.auug.org.au
diff --cc include/linux/of.h
index 9abd3ec,ea44fd7..0000000
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@@ -65,20 -65,13 +65,27 @@@ struct device_node
#endif
};
+ #define MAX_PHANDLE_ARGS 8
+ struct of_phandle_args {
+ struct device_node *np;
+ int args_count;
+ uint32_t args[MAX_PHANDLE_ARGS];
+ };
+
+#if defined(CONFIG_SPARC) || !defined(CONFIG_OF)
+/* Dummy ref counting routines - to be implemented later */
+static inline struct device_node *of_node_get(struct device_node *node)
+{
+ return node;
+}
+static inline void of_node_put(struct device_node *node)
+{
+}
+#else
+extern struct device_node *of_node_get(struct device_node *node);
+extern void of_node_put(struct device_node *node);
+#endif
+
#ifdef CONFIG_OF
/* Pointer for first entry in chain of all nodes. */
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists