Skip to content

Commit 1931ee1

Browse files
mszyprowglikely
authored andcommitted
Revert "drivers: of: add initialization code for dma reserved memory"
This reverts commit 9d8eab7. There is still no consensus on the bindings for the reserved memory and various drawbacks of the proposed solution has been shown, so the best now is to revert it completely and start again from scratch later. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
1 parent cebf3e4 commit 1931ee1

6 files changed

Lines changed: 0 additions & 366 deletions

File tree

‎Documentation/devicetree/bindings/memory.txt‎

Lines changed: 0 additions & 168 deletions
This file was deleted.

‎drivers/of/Kconfig‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,4 @@ config OF_MTD
7474
depends on MTD
7575
def_bool y
7676

77-
config OF_RESERVED_MEM
78-
depends on OF_FLATTREE && (DMA_CMA || (HAVE_GENERIC_DMA_COHERENT && HAVE_MEMBLOCK))
79-
def_bool y
80-
help
81-
Initialization code for DMA reserved memory
82-
8377
endmenu # OF

‎drivers/of/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ obj-$(CONFIG_OF_MDIO) += of_mdio.o
99
obj-$(CONFIG_OF_PCI) += of_pci.o
1010
obj-$(CONFIG_OF_PCI_IRQ) += of_pci_irq.o
1111
obj-$(CONFIG_OF_MTD) += of_mtd.o
12-
obj-$(CONFIG_OF_RESERVED_MEM) += of_reserved_mem.o

‎drivers/of/of_reserved_mem.c‎

Lines changed: 0 additions & 173 deletions
This file was deleted.

‎drivers/of/platform.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <linux/of_device.h>
2222
#include <linux/of_irq.h>
2323
#include <linux/of_platform.h>
24-
#include <linux/of_reserved_mem.h>
2524
#include <linux/platform_device.h>
2625

2726
const struct of_device_id of_default_bus_match_table[] = {
@@ -219,16 +218,13 @@ static struct platform_device *of_platform_device_create_pdata(
219218
dev->dev.bus = &platform_bus_type;
220219
dev->dev.platform_data = platform_data;
221220

222-
of_reserved_mem_device_init(&dev->dev);
223-
224221
/* We do not fill the DMA ops for platform devices by default.
225222
* This is currently the responsibility of the platform code
226223
* to do such, possibly using a device notifier
227224
*/
228225

229226
if (of_device_add(dev) != 0) {
230227
platform_device_put(dev);
231-
of_reserved_mem_device_release(&dev->dev);
232228
return NULL;
233229
}
234230

‎include/linux/of_reserved_mem.h‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)