]> 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)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:44 +0000 (14:10 +0200)
commita66d72885a3949f3af4b92bf46c67e192631533d
tree8680257e1c9a41828375655de1ef229c1f378a2b
parent3469fd5c2e8a0825e0aea5f03951e0e20de62e80
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