From: Ben Hutchings Date: Fri, 29 Jan 2010 20:58:37 +0000 (+0000) Subject: mtd: mtdblock: Dynamically allocate cache info structures X-Git-Tag: v2.6.35-rc1~465^2~122 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbfe93e9cedfcd59689bad9e67f57ef67545e5a0;p=pandora-kernel.git mtd: mtdblock: Dynamically allocate cache info structures Since we allocate struct mtd_blktrans_dev for each block device, we can add our own structure members to the end. Therefore embed struct mtd_blktrans_dev in struct mtdblk_dev and remove the static array of struct mtdblk_dev. Also remove the redundant pointer to struct mtd_info. This is preparation for removing the static limit on the number of MTD devices. Signed-off-by: Ben Hutchings Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed