@@ -83,31 +83,6 @@ int __init dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base,
83
83
phys_addr_t limit , struct cma * * res_cma ,
84
84
bool fixed );
85
85
86
- /**
87
- * dma_declare_contiguous() - reserve area for contiguous memory handling
88
- * for particular device
89
- * @dev: Pointer to device structure.
90
- * @size: Size of the reserved memory.
91
- * @base: Start address of the reserved memory (optional, 0 for any).
92
- * @limit: End address of the reserved memory (optional, 0 for any).
93
- *
94
- * This function reserves memory for specified device. It should be
95
- * called by board specific code when early allocator (memblock or bootmem)
96
- * is still activate.
97
- */
98
-
99
- static inline int dma_declare_contiguous (struct device * dev , phys_addr_t size ,
100
- phys_addr_t base , phys_addr_t limit )
101
- {
102
- struct cma * cma ;
103
- int ret ;
104
- ret = dma_contiguous_reserve_area (size , base , limit , & cma , true);
105
- if (ret == 0 )
106
- dev_set_cma_area (dev , cma );
107
-
108
- return ret ;
109
- }
110
-
111
86
struct page * dma_alloc_from_contiguous (struct device * dev , size_t count ,
112
87
unsigned int order , bool no_warn );
113
88
bool dma_release_from_contiguous (struct device * dev , struct page * pages ,
@@ -135,13 +110,6 @@ static inline int dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base
135
110
return - ENOSYS ;
136
111
}
137
112
138
- static inline
139
- int dma_declare_contiguous (struct device * dev , phys_addr_t size ,
140
- phys_addr_t base , phys_addr_t limit )
141
- {
142
- return - ENOSYS ;
143
- }
144
-
145
113
static inline
146
114
struct page * dma_alloc_from_contiguous (struct device * dev , size_t count ,
147
115
unsigned int order , bool no_warn )
0 commit comments