]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c915645d02a566f2d1d751b77fd6e6f63530917
tree0be81ee88596b47710c10220d24eecf113e118cb
parentb151a404e804d544f272e8c2465372653e3a9452
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