diff options
author | Stefan Roese <sr@denx.de> | 2008-08-13 06:47:12 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-08-13 06:47:12 +0200 |
commit | 5a7ddf4e1fb9347f783eb1473c30187d7a22bd81 (patch) | |
tree | 5e30fc06d7bbd5b382b1a7b89f57cd81a5246f32 /include/linux/mtd/compat.h | |
parent | 9939ffd5fbf1f5aff4d8172531d4fc33797c62c8 (diff) | |
parent | 8641ff266ae6638da201747c239fd39ba34c4958 (diff) | |
download | u-boot-imx-5a7ddf4e1fb9347f783eb1473c30187d7a22bd81.zip u-boot-imx-5a7ddf4e1fb9347f783eb1473c30187d7a22bd81.tar.gz u-boot-imx-5a7ddf4e1fb9347f783eb1473c30187d7a22bd81.tar.bz2 |
Merge branch 'master' of /home/stefan/git/u-boot/u-boot
Diffstat (limited to 'include/linux/mtd/compat.h')
-rw-r--r-- | include/linux/mtd/compat.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/mtd/compat.h b/include/linux/mtd/compat.h index fe55087..9036b74 100644 --- a/include/linux/mtd/compat.h +++ b/include/linux/mtd/compat.h @@ -18,7 +18,12 @@ #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 |