mtd: phram: Allow probing via reserved-memory
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Tue, 12 Apr 2022 13:53:01 +0000 (15:53 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 25 Apr 2022 08:37:49 +0000 (10:37 +0200)
commit7090d2f1d66767928b6f24def05b715ed18e5c6f
tree2502d5909ef283e06301f6fd0407dfbe55a4c4c9
parent4e969459604632d4096ff536f72552a9d365845e
mtd: phram: Allow probing via reserved-memory

Allow phram to be probed from the devicetree.  It expects to be in a
reserved-memory node as documented by the bindings.  This allows things
like partitioning to be specified via the devicetree.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220412135302.1682890-4-vincent.whitchurch@axis.com
drivers/mtd/devices/phram.c
drivers/of/platform.c