mtd: Use get_mtd_device_nm() to find named device in get_sb_mtd()
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 29 Jan 2010 20:57:18 +0000 (20:57 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 25 Feb 2010 11:38:35 +0000 (11:38 +0000)
commit677c2aec8cdd5ae33b5fab266941cf6c6dc4d59f
tree76f2c82d7f7593773dd6c454bac487c9a97106db
parentf1332ba2f23800bb5d52457ac150c568dfb1f3bf
mtd: Use get_mtd_device_nm() to find named device in get_sb_mtd()

This removes the need to know 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>
drivers/mtd/mtdsuper.c