diff options
| author | Stephan Gerhold <stephan@gerhold.net> | 2023-05-29 20:16:14 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-08-10 07:58:35 +0200 |
| commit | 32136e283a06fbe45bcbfff9560aa55d8a35fb4f (patch) | |
| tree | 820b98d555e1c1966dcf30ecda1cb7daff54fc51 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | dca24b633c829940ada7c6b0dd74558b54e39ece (diff) | |
media: venus: firmware: Use of_reserved_mem_lookup()
Reserved memory can be either looked up using the generic function
of_address_to_resource() or using the special of_reserved_mem_lookup().
The latter has the advantage that it ensures that the referenced memory
region was really reserved and is not e.g. status = "disabled".
of_reserved_mem also supports allocating reserved memory dynamically at
boot time. This works only when using of_reserved_mem_lookup() since
there won't be a fixed address in the device tree.
Switch the code to use of_reserved_mem_lookup(). There is no functional
difference for static reserved memory allocations.
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
