From: Geert Uytterhoeven Date: Sat, 29 Jun 2013 08:40:20 +0000 (+0200) Subject: zorro: Do not allocate zorro_autocon[] statically X-Git-Tag: v3.14-rc1~183^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c293738e6d8dfb9c941759855b5161fde449644d;p=pandora-kernel.git zorro: Do not allocate zorro_autocon[] statically Currently the array of Zorro devices is allocated statically, wasting up to 4.5 KiB when running an Amiga or multi-platform kernel on a machine with no or a handful of Zorro expansion cards. Convert it to conditional dynamic memory allocation to fix this. amiga_parse_bootinfo() still needs to store some information about the detected Zorro devices, at a time even the bootmem allocator is not yet available. This is now handled using a much smaller array (typically less than 0.5 KiB), which is __initdata and thus freed later. Signed-off-by: Geert Uytterhoeven --- Reading git-diff-tree failed