diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-10-19 09:48:56 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-11-05 22:23:43 +0100 |
commit | c7f6dc60a319edac986486580b2fc31475ceba11 (patch) | |
tree | 7d18e42d8f548b855b1f69c059e6616995437f3d /lib/locking-selftest-spin.h | |
parent | mtd: maps: physmap: Rename ->map and ->mtd into ->maps and ->mtds (diff) | |
download | linux-c7f6dc60a319edac986486580b2fc31475ceba11.tar.xz linux-c7f6dc60a319edac986486580b2fc31475ceba11.zip |
mtd: maps: physmap: Use platform_get_resource() to retrieve iomem resources
Stop manipulating the dev->resource array directly and use the
platform_get_resource() helper instead.
While at it, fix the loop check so that we never overflow the info->maps
and info->mtds array even if the number of resources attached to the
platform dev is higher than MAX_RESOURCES.
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>
Diffstat (limited to 'lib/locking-selftest-spin.h')
0 files changed, 0 insertions, 0 deletions