Thread (3 messages) 3 messages, 2 authors, 2008-05-06

Re: [PATCH] [POWERPC] Fix of_i2c include for module compilation

flat view

From: Paul Mackerras <hidden>
Date: 2008-05-05 04:24:53
Also in: linux-i2c, lkml

Jochen Friedrich writes:
quoted hunk ↗ jump to hunk
-#ifdef CONFIG_OF_I2C
+#if defined(CONFIG_OF_I2C) || defined(CONFIG_OF_I2C_MODULE)
 
 void of_register_i2c_devices(struct i2c_adapter *adap,
 			     struct device_node *adap_node);
Why do we have that ifdef there at all?  There's only that one
external declaration within it, so the #ifdef and #endif could just be
removed.  If the ifdef hadn't been there in the first place we
wouldn't have had this problem.

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