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: NBoris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: NRicardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: NLinus Walleij <linus.walleij@linaro.org>
Showing
想要评论请 注册 或 登录