Thread (1 message) 1 message, 1 author, 2011-06-10

[PATCH v4 3/4] drivers/amba: create devices from device tree

From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-06-10 21:04:06
Also in: linux-devicetree

On Friday 10 June 2011 22:48:42 Rob Herring wrote:
+#ifdef CONFIG_OF
+int of_amba_device_create(struct device_node *node, struct device *parent);
+#endif
+
+#else
+
+#ifdef CONFIG_OF
+static inline int of_amba_device_create(struct device_node *node, 
+                                       struct device *parent)
+{
+       return 0;
+}
+#endif
+
We normally don't use #ifdef around declarations like this, it doesn't
hurt to have them even when the code is not there. Otherwise the patch
looks good.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help