On Thu, 9 Apr 2020 19:52:27 +0200, Thierry Reding wrote: > From: Thierry Reding <treding@xxxxxxxxxx> > > While the lookup/initialization code already supports multiple memory > regions per device, the release code will only ever release the first > matching memory region. > > Enhance the code to release all matching regions. Each attachment of > a region to a device is uniquely identifiable using a struct device > pointer and a pointer to the memory region's struct reserved_mem. > > Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> > --- > drivers/of/of_reserved_mem.c | 22 ++++++++++------------ > 1 file changed, 10 insertions(+), 12 deletions(-) > Reviewed-by: Rob Herring <robh@xxxxxxxxxx>