mtd: maps: physmap: Remove the MAX_RESOURCES limitation
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 19 Oct 2018 07:48:59 +0000 (09:48 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 5 Nov 2018 21:23:58 +0000 (22:23 +0100)
commit51b436a2420e32258f78f0d7a53c8ad1c8569d3b
tree0be81ee88596b47710c10220d24eecf113e118cb
parentea5bc54b12e822a2691c8b7348fae3badb6e376c
mtd: maps: physmap: Remove the MAX_RESOURCES limitation

Remove the MAX_RESOURCES limitation by dynamically allocating the
->mtds[] and ->maps[] at probe time based on the number of iomem
resources attached to the platform device.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mtd/maps/physmap.c