mtd: mchp23k256: add partitioning support
commit2f071ff175ea221710d583222b55f915d90901f0
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Fri, 2 Jun 2017 03:21:18 +0000 (2 15:21 +1200)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 8 Jun 2017 23:28:03 +0000 (8 16:28 -0700)
tree3895595ed0ed21f6eeb57aa49bb05918f12b0381
parent44225c9c79ae288b5f1668dc5dda7ba9f87995f1
mtd: mchp23k256: add partitioning support

Setting the of_node for the mtd device allows the generic mtd code to
setup the partitions.

[Editorial note (Brian): patch still pending on fixing up the "aligned
to eraseblock" partition sanity check, given that this SRAM has no
eraseblocks.]

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/mchp23k256.c