]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/linux/mtd/compat.h
Update MTD to that of Linux 2.6.22.1
[people/ms/u-boot.git] / include / linux / mtd / compat.h
index fe55087ea93602d61e2e620f5849ba47553fd72a..86a6e43ca9a323d554e01bcdddea4bbb365583c5 100644 (file)
 #define KERN_DEBUG
 
 #define kmalloc(size, flags)   malloc(size)
-#define kfree(ptr)             free(ptr)
+#define kzalloc(size, flags)    calloc(size, 1)
+#define vmalloc(size)                  malloc(size)
+#define kfree(ptr)                     free(ptr)
+#define vfree(ptr)              free(ptr)
+
+#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
 
 /*
  * ..and if you can't take the strict