# Re: \[PATCH\] fbdev: simplefb: Use of\_reserved\_mem\_region\_to\_resource() for "memory-region"

- From: Helge Deller \<deller@gmx.de\>
- Date: 2025-07-27 16:02:01 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2025/07/3149929
- Thread: https://ratatoskr.run/linux-fbdev/2025/07/3120128/t.md

```text
On 7/3/25 20:35, Rob Herring (Arm) wrote:
> Use the newly added of_reserved_mem_region_to_resource() function to
> handle "memory-region" properties.
>
> The error handling is a bit different. "memory-region" is optional, so
> failed lookup is not an error. But then an error in
> of_address_to_resource() is treated as an error. However, that
> distinction is not really important. Either the region is available
> and usable or it is not. So now, it is just
> of_reserved_mem_region_to_resource() which is checked for an error.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
>   drivers/video/fbdev/simplefb.c | 17 ++++-------------
>   1 file changed, 4 insertions(+), 13 deletions(-

applied.

Thanks!
Helge
```
