summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_req.h
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-10-19 10:48:56 +0300
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-11-06 00:23:43 +0300
commitc7f6dc60a319edac986486580b2fc31475ceba11 (patch)
tree7d18e42d8f548b855b1f69c059e6616995437f3d /drivers/block/drbd/drbd_req.h
parent00142d6ffeb67b22e1f5259c9f3af540ed1d2b62 (diff)
downloadlinux-c7f6dc60a319edac986486580b2fc31475ceba11.tar.xz
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 'drivers/block/drbd/drbd_req.h')
0 files changed, 0 insertions, 0 deletions