aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/of_reserved_mem.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2021-05-27 14:38:41 -0500
committerRob Herring <robh@kernel.org>2021-06-02 20:59:28 -0500
commit12d55d3b5370448f6568d0031b5e401cc050c29e (patch)
treee9ab679b33f87ab6a572f3e64221e22b6474dd8a /include/linux/of_reserved_mem.h
parentof: Drop reserved mem dependency on DMA_DECLARE_COHERENT and DMA_CMA (diff)
downloadwireguard-linux-12d55d3b5370448f6568d0031b5e401cc050c29e.tar.xz
wireguard-linux-12d55d3b5370448f6568d0031b5e401cc050c29e.zip
of: Move reserved memory private function declarations
fdt_init_reserved_mem() and fdt_reserved_mem_save_node() are private to the DT code, so move there declarations to of_private.h. There's no need for the dummy functions as CONFIG_OF_RESERVED_MEM is always enabled for CONFIG_OF_EARLY_FLATTREE. Cc: Frank Rowand <frowand.list@gmail.com> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20210527193841.1284169-1-robh@kernel.org
Diffstat (limited to 'include/linux/of_reserved_mem.h')
-rw-r--r--include/linux/of_reserved_mem.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/of_reserved_mem.h b/include/linux/of_reserved_mem.h
index 8216a4156263..76e4a0fffba4 100644
--- a/include/linux/of_reserved_mem.h
+++ b/include/linux/of_reserved_mem.h
@@ -39,9 +39,6 @@ int of_reserved_mem_device_init_by_name(struct device *dev,
const char *name);
void of_reserved_mem_device_release(struct device *dev);
-void fdt_init_reserved_mem(void);
-void fdt_reserved_mem_save_node(unsigned long node, const char *uname,
- phys_addr_t base, phys_addr_t size);
struct reserved_mem *of_reserved_mem_lookup(struct device_node *np);
#else
static inline int of_reserved_mem_device_init_by_idx(struct device *dev,
@@ -59,9 +56,6 @@ static inline int of_reserved_mem_device_init_by_name(struct device *dev,
static inline void of_reserved_mem_device_release(struct device *pdev) { }
-static inline void fdt_init_reserved_mem(void) { }
-static inline void fdt_reserved_mem_save_node(unsigned long node,
- const char *uname, phys_addr_t base, phys_addr_t size) { }
static inline struct reserved_mem *of_reserved_mem_lookup(struct device_node *np)
{
return NULL;