summaryrefslogtreecommitdiffstats
path: root/include/i2c.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-10-04 21:19:19 +0200
committerWolfgang Denk <wd@denx.de>2011-10-04 21:19:19 +0200
commitf092f15d39d1a223b240eb83dc3f4c64a02a8ea6 (patch)
tree331b256fb756d9c199456003c3f07804bcbe8896 /include/i2c.h
parent7b8ffea2ac44097ed1c99ba70b8c6a4cf12ba0b4 (diff)
downloadblackbird-obmc-uboot-f092f15d39d1a223b240eb83dc3f4c64a02a8ea6.tar.gz
blackbird-obmc-uboot-f092f15d39d1a223b240eb83dc3f4c64a02a8ea6.zip
Revert "GCC4.6: Convert various empty macros to inline functions"
This reverts commit 60ce53cf9f408d9ad721f8e7a87d6a564e6d5bac. The commit causes build breakage for a number of boards. This results from the fact that now the arguments of debug() actually get referenced (even if there is hope that the compiler will optimize away the debug() call). The obvious fix to that probem (change the code to always declare the referenced variables and data structures) increases the code size, and was this rejected. So it was decided to revert this commit until a better solution is found.
Diffstat (limited to 'include/i2c.h')
-rw-r--r--include/i2c.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 323150ded9..8ceb4c8521 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -55,10 +55,7 @@
#else
#define CONFIG_SYS_MAX_I2C_BUS 1
#define I2C_GET_BUS() 0
-static inline int I2C_SET_BUS(unsigned int bus)
-{
- return 0;
-}
+#define I2C_SET_BUS(a)
#endif
/* define the I2C bus number for RTC and DTT if not already done */
OpenPOWER on IntegriCloud