]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/ubi_uboot.h
imx: mx6q DDR3 init: Fix RST_to_CKE
[karo-tx-uboot.git] / include / ubi_uboot.h
index 60f6a5fb4f53ed7464f1c5d3d53d088d501ef494..69006e250accd4e28ccec0594bc528b9d2809415 100644 (file)
@@ -123,7 +123,7 @@ typedef int wait_queue_head_t;
 #define init_rwsem(...)                        do { } while (0)
 #define down_read(...)                 do { } while (0)
 #define down_write(...)                        do { } while (0)
-#define down_write_trylock(...)                0
+#define down_write_trylock(...)                1
 #define up_read(...)                   do { } while (0)
 #define up_write(...)                  do { } while (0)
 
@@ -191,9 +191,6 @@ static inline long IS_ERR(const void *ptr)
        return IS_ERR_VALUE((unsigned long)ptr);
 }
 
-/* Force a compilation error if condition is true */
-#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
-
 /* module */
 #define THIS_MODULE            0
 #define try_module_get(...)    1