]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
fsldma: allow Freescale Elo DMA driver to be compiled as a module
authorTimur Tabi <timur@freescale.com>
Sat, 27 Sep 2008 00:00:11 +0000 (17:00 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 27 Sep 2008 00:00:11 +0000 (17:00 -0700)
commit77cd62e8082b9743b59ee1946a4c3ee2e3cd2bce
tree8fe08914499988f47f51e74395522e5862b0c31d
parent59f647c25a4f27c1e5c84710e0608b36303089f9
fsldma: allow Freescale Elo DMA driver to be compiled as a module

Modify the Freescale Elo / Elo Plus DMA driver so that it can be compiled as
a module.

The primary change is to stop treating the DMA controller as a bus, and the
DMA channels as devices on the bus.  This is because the Open Firmware (OF)
kernel code does not allow busses to be removed, so although we can call
of_platform_bus_probe() to probe the DMA channels, there is no
of_platform_bus_remove().  Instead, the DMA channels are manually probed,
similar to what fsl_elbc_nand.c does.

Cc: Scott Wood <scottwood@freescale.com>
Acked-by: Li Yang <leoli@freescale.com>
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/Kconfig
drivers/dma/fsldma.c
drivers/dma/fsldma.h