diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:20:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:20:41 -0500 |
commit | 3298a3511f1e73255a8dc023efd909e569eea037 (patch) | |
tree | 2d8e9bdb9e398049e3876b99fbb4d51099a45cc3 /drivers/dma/omap-dma.c | |
parent | 5ce7aba976ebdfbf467e3cbcd3a7536ebdec4b11 (diff) | |
parent | acb7452369e4f8749dd32d48dbda98936035a87c (diff) |
Merge tag 'multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC multiplatform support from Arnd Bergmann:
"Converting more ARM platforms to multiplatform support. This time,
OMAP gets converted, which is a major step since this is by far the
largest platform in terms of code size. The same thing happens to the
vt8500 platform."
* tag 'multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
net: cwdavinci_cpdma: export symbols for cpsw
remoteproc: omap: depend on OMAP_MBOX_FWK
[media] davinci: do not include mach/hardware.h
ARM: OMAP2+: Make sure files with omap initcalls include soc.h
ARM: OMAP2+: Include soc.h to drm.c to fix compiling
ARM: OMAP2+: Fix warning for hwspinlock omap_postcore_initcall
ARM: multi_v7_defconfig: add ARCH_ZYNQ
ARM: multi_v7_defconfig: remove unnecessary CONFIG_GPIOLIB
arm: vt8500: Remove remaining mach includes
arm: vt8500: Convert debug-macro.S to be multiplatform friendly
arm: vt8500: Remove single platform Kconfig options
ARM: OMAP2+: Remove now obsolete uncompress.h and debug-macro.S
ARM: OMAP2+: Add minimal support for booting vexpress
ARM: OMAP2+: Enable ARCH_MULTIPLATFORM support
ARM: OMAP2+: Disable code that currently does not work with multiplaform
ARM: OMAP2+: Add multiplatform debug_ll support
ARM: OMAP: Fix dmaengine init for multiplatform
ARM: OMAP: Fix i2c cmdline initcall for multiplatform
ARM: OMAP2+: Use omap initcalls
ARM: OMAP2+: Limit omap initcalls to omap only on multiplatform kernels
Diffstat (limited to 'drivers/dma/omap-dma.c')
-rw-r--r-- | drivers/dma/omap-dma.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index 5a31264f2bd1..c4b4fd2acc42 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c | |||
@@ -661,32 +661,14 @@ bool omap_dma_filter_fn(struct dma_chan *chan, void *param) | |||
661 | } | 661 | } |
662 | EXPORT_SYMBOL_GPL(omap_dma_filter_fn); | 662 | EXPORT_SYMBOL_GPL(omap_dma_filter_fn); |
663 | 663 | ||
664 | static struct platform_device *pdev; | ||
665 | |||
666 | static const struct platform_device_info omap_dma_dev_info = { | ||
667 | .name = "omap-dma-engine", | ||
668 | .id = -1, | ||
669 | .dma_mask = DMA_BIT_MASK(32), | ||
670 | }; | ||
671 | |||
672 | static int omap_dma_init(void) | 664 | static int omap_dma_init(void) |
673 | { | 665 | { |
674 | int rc = platform_driver_register(&omap_dma_driver); | 666 | return platform_driver_register(&omap_dma_driver); |
675 | |||
676 | if (rc == 0) { | ||
677 | pdev = platform_device_register_full(&omap_dma_dev_info); | ||
678 | if (IS_ERR(pdev)) { | ||
679 | platform_driver_unregister(&omap_dma_driver); | ||
680 | rc = PTR_ERR(pdev); | ||
681 | } | ||
682 | } | ||
683 | return rc; | ||
684 | } | 667 | } |
685 | subsys_initcall(omap_dma_init); | 668 | subsys_initcall(omap_dma_init); |
686 | 669 | ||
687 | static void __exit omap_dma_exit(void) | 670 | static void __exit omap_dma_exit(void) |
688 | { | 671 | { |
689 | platform_device_unregister(pdev); | ||
690 | platform_driver_unregister(&omap_dma_driver); | 672 | platform_driver_unregister(&omap_dma_driver); |
691 | } | 673 | } |
692 | module_exit(omap_dma_exit); | 674 | module_exit(omap_dma_exit); |