diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-09-28 11:57:05 -0400 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2015-09-30 04:13:09 -0400 |
| commit | 6dbd80a919db24f5a1c66460838bb10ebe188d21 (patch) | |
| tree | 7db024dc49703ffb502f5a4ee8171e1c72d6a5a1 /drivers/dma/dw | |
| parent | 39416677b95bf1ab8bbfa229ec7e511c96ad5d0c (diff) | |
dmaengine: dw: use dw_dmac autoconfiguration in PCI driver
Instead of hardconding a platform data for dw_dmac let's use it's own
autoconfiguration feature. Thus, remove hardcoded values.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw')
| -rw-r--r-- | drivers/dma/dw/pci.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/drivers/dma/dw/pci.c b/drivers/dma/dw/pci.c index b144706b3d85..4c30fdd092b3 100644 --- a/drivers/dma/dw/pci.c +++ b/drivers/dma/dw/pci.c | |||
| @@ -15,12 +15,6 @@ | |||
| 15 | 15 | ||
| 16 | #include "internal.h" | 16 | #include "internal.h" |
| 17 | 17 | ||
| 18 | static struct dw_dma_platform_data dw_pci_pdata = { | ||
| 19 | .is_private = 1, | ||
| 20 | .chan_allocation_order = CHAN_ALLOCATION_ASCENDING, | ||
| 21 | .chan_priority = CHAN_PRIORITY_ASCENDING, | ||
| 22 | }; | ||
| 23 | |||
| 24 | static int dw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid) | 18 | static int dw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid) |
| 25 | { | 19 | { |
| 26 | struct dw_dma_chip *chip; | 20 | struct dw_dma_chip *chip; |
| @@ -101,19 +95,19 @@ static const struct dev_pm_ops dw_pci_dev_pm_ops = { | |||
| 101 | 95 | ||
| 102 | static const struct pci_device_id dw_pci_id_table[] = { | 96 | static const struct pci_device_id dw_pci_id_table[] = { |
| 103 | /* Medfield */ | 97 | /* Medfield */ |
| 104 | { PCI_VDEVICE(INTEL, 0x0827), (kernel_ulong_t)&dw_pci_pdata }, | 98 | { PCI_VDEVICE(INTEL, 0x0827) }, |
| 105 | { PCI_VDEVICE(INTEL, 0x0830), (kernel_ulong_t)&dw_pci_pdata }, | 99 | { PCI_VDEVICE(INTEL, 0x0830) }, |
| 106 | 100 | ||
| 107 | /* BayTrail */ | 101 | /* BayTrail */ |
| 108 | { PCI_VDEVICE(INTEL, 0x0f06), (kernel_ulong_t)&dw_pci_pdata }, | 102 | { PCI_VDEVICE(INTEL, 0x0f06) }, |
| 109 | { PCI_VDEVICE(INTEL, 0x0f40), (kernel_ulong_t)&dw_pci_pdata }, | 103 | { PCI_VDEVICE(INTEL, 0x0f40) }, |
| 110 | 104 | ||
| 111 | /* Braswell */ | 105 | /* Braswell */ |
| 112 | { PCI_VDEVICE(INTEL, 0x2286), (kernel_ulong_t)&dw_pci_pdata }, | 106 | { PCI_VDEVICE(INTEL, 0x2286) }, |
| 113 | { PCI_VDEVICE(INTEL, 0x22c0), (kernel_ulong_t)&dw_pci_pdata }, | 107 | { PCI_VDEVICE(INTEL, 0x22c0) }, |
| 114 | 108 | ||
| 115 | /* Haswell */ | 109 | /* Haswell */ |
| 116 | { PCI_VDEVICE(INTEL, 0x9c60), (kernel_ulong_t)&dw_pci_pdata }, | 110 | { PCI_VDEVICE(INTEL, 0x9c60) }, |
| 117 | { } | 111 | { } |
| 118 | }; | 112 | }; |
| 119 | MODULE_DEVICE_TABLE(pci, dw_pci_id_table); | 113 | MODULE_DEVICE_TABLE(pci, dw_pci_id_table); |
