summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-01-29 21:58:37 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-25 12:53:00 +0100
commitcbfe93e9cedfcd59689bad9e67f57ef67545e5a0 (patch)
tree32c6c213dc377f10198988c1e226a59ae22d974d /lib
parentmtd: Remove unnecessary comparisons with MAX_MTD_DEVICES (diff)
downloadlinux-cbfe93e9cedfcd59689bad9e67f57ef67545e5a0.tar.xz
linux-cbfe93e9cedfcd59689bad9e67f57ef67545e5a0.zip
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 <bhutchings@solarflare.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions