platform.c (56544d29c3a0e383c0d819fefc9570b2803db193) platform.c (a104a45ba7a51b5b4c5e8437020d9d48edf22f89)
1/*
2 * Platform driver for the Synopsys DesignWare DMA Controller
3 *
4 * Copyright (C) 2007-2008 Atmel Corporation
5 * Copyright (C) 2010-2011 ST Microelectronics
6 * Copyright (C) 2013 Intel Corporation
7 *
8 * Some parts of this driver are derived from the original dw_dmac.

--- 12 unchanged lines hidden (view full) ---

21#include <linux/dma-mapping.h>
22#include <linux/of.h>
23#include <linux/of_dma.h>
24#include <linux/acpi.h>
25#include <linux/acpi_dma.h>
26
27#include "internal.h"
28
1/*
2 * Platform driver for the Synopsys DesignWare DMA Controller
3 *
4 * Copyright (C) 2007-2008 Atmel Corporation
5 * Copyright (C) 2010-2011 ST Microelectronics
6 * Copyright (C) 2013 Intel Corporation
7 *
8 * Some parts of this driver are derived from the original dw_dmac.

--- 12 unchanged lines hidden (view full) ---

21#include <linux/dma-mapping.h>
22#include <linux/of.h>
23#include <linux/of_dma.h>
24#include <linux/acpi.h>
25#include <linux/acpi_dma.h>
26
27#include "internal.h"
28
29#define DRV_NAME "dw_dmac"
30
29static struct dma_chan *dw_dma_of_xlate(struct of_phandle_args *dma_spec,
30 struct of_dma *ofdma)
31{
32 struct dw_dma *dw = ofdma->of_dma_data;
33 struct dw_dma_slave slave = {
34 .dma_dev = dw->dma.dev,
35 };
36 dma_cap_mask_t cap;

--- 242 unchanged lines hidden (view full) ---

279 SET_LATE_SYSTEM_SLEEP_PM_OPS(dw_suspend_late, dw_resume_early)
280};
281
282static struct platform_driver dw_driver = {
283 .probe = dw_probe,
284 .remove = dw_remove,
285 .shutdown = dw_shutdown,
286 .driver = {
31static struct dma_chan *dw_dma_of_xlate(struct of_phandle_args *dma_spec,
32 struct of_dma *ofdma)
33{
34 struct dw_dma *dw = ofdma->of_dma_data;
35 struct dw_dma_slave slave = {
36 .dma_dev = dw->dma.dev,
37 };
38 dma_cap_mask_t cap;

--- 242 unchanged lines hidden (view full) ---

281 SET_LATE_SYSTEM_SLEEP_PM_OPS(dw_suspend_late, dw_resume_early)
282};
283
284static struct platform_driver dw_driver = {
285 .probe = dw_probe,
286 .remove = dw_remove,
287 .shutdown = dw_shutdown,
288 .driver = {
287 .name = "dw_dmac",
289 .name = DRV_NAME,
288 .pm = &dw_dev_pm_ops,
289 .of_match_table = of_match_ptr(dw_dma_of_id_table),
290 .acpi_match_table = ACPI_PTR(dw_dma_acpi_id_table),
291 },
292};
293
294static int __init dw_init(void)
295{

--- 4 unchanged lines hidden (view full) ---

300static void __exit dw_exit(void)
301{
302 platform_driver_unregister(&dw_driver);
303}
304module_exit(dw_exit);
305
306MODULE_LICENSE("GPL v2");
307MODULE_DESCRIPTION("Synopsys DesignWare DMA Controller platform driver");
290 .pm = &dw_dev_pm_ops,
291 .of_match_table = of_match_ptr(dw_dma_of_id_table),
292 .acpi_match_table = ACPI_PTR(dw_dma_acpi_id_table),
293 },
294};
295
296static int __init dw_init(void)
297{

--- 4 unchanged lines hidden (view full) ---

302static void __exit dw_exit(void)
303{
304 platform_driver_unregister(&dw_driver);
305}
306module_exit(dw_exit);
307
308MODULE_LICENSE("GPL v2");
309MODULE_DESCRIPTION("Synopsys DesignWare DMA Controller platform driver");
310MODULE_ALIAS("platform:" DRV_NAME);