]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: wr_sbc82xx_flash.c: use mtd_device_parse_register
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 2 Jun 2011 14:00:20 +0000 (18:00 +0400)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 16 Aug 2011 13:44:44 +0000 (16:44 +0300)
commit49c30de93e8adde8aacb207e5343e27799a18c50
tree298e8f07a82f82c29e1dbb55cc81131f27c6d2ae
parent308b6cc75ab4b8063a57fd7576d86f9abc7a1ee8
mtd: wr_sbc82xx_flash.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.

Artem: some tweaks, split one very long line while on it.

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