]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
of: reserved_mem: switch to ops based OF_DECLARE()
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 25 Mar 2026 09:00:19 +0000 (10:00 +0100)
committerRob Herring (Arm) <robh@kernel.org>
Thu, 26 Mar 2026 19:12:02 +0000 (14:12 -0500)
commitc640cad6a5382ea08a4e052156cfefc8021c51b7
treea1f680b1800da267744c8747992294bfa977db41
parent9d5149b3f2e7e80378907a8d3e4f7a94dfbbbdb8
of: reserved_mem: switch to ops based OF_DECLARE()

Move init function from OF_DECLARE() argument to the given reserved
memory region ops structure and then pass that structure to the
OF_DECLARE() initializer. This node_init callback is mandatory for the
reserved mem driver. Such change makes it possible in the future to add
more functions called by the generic code before given memory region is
initialized and rmem object is created.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://patch.msgid.link/20260325090023.3175348-4-m.szyprowski@samsung.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/memory/tegra/tegra210-emc-table.c
drivers/of/of_reserved_mem.c
include/linux/of_reserved_mem.h
kernel/dma/coherent.c
kernel/dma/contiguous.c
kernel/dma/swiotlb.c