aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/csr1212.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ieee1394/csr1212.c')
-rw-r--r--drivers/ieee1394/csr1212.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ieee1394/csr1212.c b/drivers/ieee1394/csr1212.c
index 6c2f55bb9463..2fd465ec94ec 100644
--- a/drivers/ieee1394/csr1212.c
+++ b/drivers/ieee1394/csr1212.c
@@ -932,7 +932,9 @@ static void csr1212_fill_cache(struct csr1212_csr_rom_cache *cache)
932 } 932 }
933} 933}
934 934
935#define CSR1212_EXTENDED_ROM_SIZE (0x10000 * sizeof(u32)) 935/* This size is arbitrarily chosen.
936 * The struct overhead is subtracted for more economic allocations. */
937#define CSR1212_EXTENDED_ROM_SIZE (2048 - sizeof(struct csr1212_csr_rom_cache))
936 938
937int csr1212_generate_csr_image(struct csr1212_csr *csr) 939int csr1212_generate_csr_image(struct csr1212_csr *csr)
938{ 940{