]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ieee1394/csr1212.h
[PATCH] MTD NAND: Fix ams-delta after core conversion
[linux-2.6-omap-h63xx.git] / drivers / ieee1394 / csr1212.h
index 28c5f4b726e2e375867ac256c746bd7c0cb40773..17ddd72dee4e60c8f3ac4e99ff4a57be2f8d7531 100644 (file)
 
 #define  CSR1212_EXTENDED_ROM_SIZE             (0x10000 * sizeof(u_int32_t))
 
+#define  CSR1212_INVALID_ADDR_SPACE            -1
 
 /* Config ROM image structures */
 struct csr1212_bus_info_block_img {
@@ -646,7 +647,7 @@ static inline struct csr1212_csr_rom_cache *csr1212_rom_cache_malloc(u_int32_t o
 {
        struct csr1212_csr_rom_cache *cache;
 
-       cache = CSR1212_MALLOC(sizeof(struct csr1212_csr_rom_cache) + size);
+       cache = CSR1212_MALLOC(sizeof(*cache) + size);
        if (!cache)
                return NULL;