]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/linux/mtd/compat.h
imported Ka-Ro specific additions to U-Boot 2009.08 for TX28
[karo-tx-uboot.git] / include / linux / mtd / compat.h
index fe55087ea93602d61e2e620f5849ba47553fd72a..f0c8464db5a47b5517f8117f001bb92c0f8338cc 100755 (executable)
 #define KERN_DEBUG
 
 #define kmalloc(size, flags)   malloc(size)
+#define kzalloc(size, flags)   calloc(size, 1)
+#define vmalloc(size)          malloc(size)
 #define kfree(ptr)             free(ptr)
+#define vfree(ptr)             free(ptr)
+
+#define DECLARE_WAITQUEUE(...) do { } while (0)
+#define add_wait_queue(...)    do { } while (0)
+#define remove_wait_queue(...) do { } while (0)
+
+#define KERNEL_VERSION(a,b,c)  (((a) << 16) + ((b) << 8) + (c))
 
 /*
  * ..and if you can't take the strict