media: venus: firmware: Use of_reserved_mem_lookup()
authorStephan Gerhold <stephan@gerhold.net>
Mon, 29 May 2023 18:16:14 +0000 (20:16 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:35 +0000 (07:58 +0200)
commit32136e283a06fbe45bcbfff9560aa55d8a35fb4f
tree820b98d555e1c1966dcf30ecda1cb7daff54fc51
parentdca24b633c829940ada7c6b0dd74558b54e39ece
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>
drivers/media/platform/qcom/venus/firmware.c