]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: core: Check devicetree alias for index
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Tue, 12 Apr 2022 13:52:59 +0000 (15:52 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 25 Apr 2022 08:37:49 +0000 (10:37 +0200)
commitf767527931efec25e840190b29b99f2735f6c32b
treee72f2034ac652fe3040fbebc0fc92c41a7776f4d
parent54f220129e4faa4cc78449cb471b2fcf3778c299
mtd: core: Check devicetree alias for index

Allow the MTD index to be specified via a devicetree alias, so that the
number does not just depend on probe order.  This is useful to allow
pseudo-devices like phram to be optionally used on systems, without
having this affect the numbering of the real hardware MTD devices.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220412135302.1682890-2-vincent.whitchurch@axis.com
drivers/mtd/mtdcore.c