mtd: drop unnecessary partition parser data
authorBrian Norris <computersforpeace@gmail.com>
Sat, 31 Oct 2015 03:33:28 +0000 (20:33 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Nov 2015 21:58:59 +0000 (13:58 -0800)
commit004b5e6031f4e9fd90d565fb213b74cd06d03718
tree937e49232f6edc0e295c86eeedab867929426bdf
parent30069af7348b56eb8c5e1dda7788a531c5f24ca2
mtd: drop unnecessary partition parser data

We should assign the MTD dev.of_node instead of the parser data field.
This gets us the equivalent partition parser behavior with fewer special
fields and parameter passing.

Also convert several of these to mtd_device_register(), since we don't
need the 2nd and 3rd parameters anymore.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/devices/mtd_dataflash.c
drivers/mtd/devices/spear_smi.c
drivers/mtd/devices/st_spi_fsm.c
drivers/mtd/maps/lantiq-flash.c
drivers/mtd/maps/physmap_of.c
drivers/mtd/onenand/omap2.c