]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: physmap_of.c: use mtd_device_parse_register
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 2 Jun 2011 13:59:59 +0000 (17:59 +0400)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:12 +0000 (15:02 +0300)
commit70bbea80c18b8dc07e474ff1ae8756855a363bb0
treeb12bc0b5a94d4d9c64ed28ead9bb14f1fa9e51ef
parent8f45692574e7430e18dab2c13f9100d910276fa0
mtd: physmap_of.c: use mtd_device_parse_register

Replace custom invocations of parse_mtd_partitions and mtd_device_register
with common mtd_device_parse_register call. This would bring: standard
handling of all errors, fallback to default partitions, etc.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
drivers/mtd/maps/physmap_of.c