Skip to content

Commit

Permalink
Revert "drivers: of: add initialization code for dma reserved memory"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Szyprowski authored and Grant Likely committed Oct 15, 2013
1 parent cebf3e4 commit 1931ee1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 366 deletions.
168 changes: 0 additions & 168 deletions Documentation/devicetree/bindings/memory.txt

This file was deleted.

6 changes: 0 additions & 6 deletions drivers/of/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,4 @@ config OF_MTD
depends on MTD
def_bool y

config OF_RESERVED_MEM
depends on OF_FLATTREE && (DMA_CMA || (HAVE_GENERIC_DMA_COHERENT && HAVE_MEMBLOCK))
def_bool y
help
Initialization code for DMA reserved memory

endmenu # OF
1 change: 0 additions & 1 deletion drivers/of/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ obj-$(CONFIG_OF_MDIO) += of_mdio.o
obj-$(CONFIG_OF_PCI) += of_pci.o
obj-$(CONFIG_OF_PCI_IRQ) += of_pci_irq.o
obj-$(CONFIG_OF_MTD) += of_mtd.o
obj-$(CONFIG_OF_RESERVED_MEM) += of_reserved_mem.o
173 changes: 0 additions & 173 deletions drivers/of/of_reserved_mem.c

This file was deleted.

4 changes: 0 additions & 4 deletions drivers/of/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <linux/of_device.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/of_reserved_mem.h>
#include <linux/platform_device.h>

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

of_reserved_mem_device_init(&dev->dev);

/* We do not fill the DMA ops for platform devices by default.
* This is currently the responsibility of the platform code
* to do such, possibly using a device notifier
*/

if (of_device_add(dev) != 0) {
platform_device_put(dev);
of_reserved_mem_device_release(&dev->dev);
return NULL;
}

Expand Down
14 changes: 0 additions & 14 deletions include/linux/of_reserved_mem.h

This file was deleted.

0 comments on commit 1931ee1

Please sign in to comment.