]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: introduce mtd_device_(un)register()
authorJamie Iles <jamie@jamieiles.com>
Mon, 23 May 2011 16:15:46 +0000 (17:15 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 01:12:36 +0000 (02:12 +0100)
commit381f6a5c6e2a72a98ae267fb79043053b670bfcd
treed0de1f3605c3c9c784446dda167aad1fd4301d6a
parent9384d414e4f3ac9bec5c30e9cb6f512848421967
mtd: introduce mtd_device_(un)register()

To prepare for the removal of add_mtd_device and add_mtd_partitions(),
introduce mtd_device_register().  This will create partitions if they
are supplied or register the whole device if there are no partitions.

Once all drivers are converted to use mtd_device_register(),
add_mtd_device() and add_mtd_partitions() will be made internal only.

v2: move kerneldoc to implementation file and fixup some kerneldoc
warnings.

Artem: tweak comments: remove junk tabs, use dots consistently.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdcore.c
include/linux/mtd/mtd.h
include/linux/mtd/partitions.h