]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: add new API for handling MTD registration
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 25 Mar 2011 19:26:25 +0000 (22:26 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 16 Aug 2011 13:44:42 +0000 (16:44 +0300)
commit0978830800fe400eee59e4b121c27b0f8d61d233
tree13d9d0f5c5fe7b21f999052f57aaf6b9ca9dbb85
parent4e374114ad878946c2147fab346efc4a4075f64e
mtd: add new API for handling MTD registration

Lots (nearly all) mtd drivers contain nearly the similar code that
calls parse_mtd_partitions, provides some platform-default values, if
parsing fails, and registers  mtd device.

This is an aim to provide single implementation of this scenario:
mtd_device_parse_register() which will handle all this parsing and
defaults.

Artem: amended comments

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/mtdcore.c
include/linux/mtd/mtd.h