]> Pileus Git - ~andy/linux/blobdiff - drivers/dma/tegra20-apb-dma.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
[~andy/linux] / drivers / dma / tegra20-apb-dma.c
index 24acd711e0326852e2bf97bce308fb1fe272cea6..45fbeed1c1a5e56d621254399d4b7c63b93861df 100644 (file)
@@ -201,7 +201,7 @@ struct tegra_dma {
        struct clk                      *dma_clk;
        spinlock_t                      global_lock;
        void __iomem                    *base_addr;
-       struct tegra_dma_chip_data      *chip_data;
+       const struct tegra_dma_chip_data *chip_data;
 
        /* Some register need to be cache before suspend */
        u32                             reg_gen;
@@ -990,7 +990,7 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_slave_sg(
 struct dma_async_tx_descriptor *tegra_dma_prep_dma_cyclic(
        struct dma_chan *dc, dma_addr_t buf_addr, size_t buf_len,
        size_t period_len, enum dma_transfer_direction direction,
-       void *context)
+       unsigned long flags, void *context)
 {
        struct tegra_dma_channel *tdc = to_tegra_dma_chan(dc);
        struct tegra_dma_desc *dma_desc = NULL;
@@ -1173,14 +1173,14 @@ static void tegra_dma_free_chan_resources(struct dma_chan *dc)
 }
 
 /* Tegra20 specific DMA controller information */
-static struct tegra_dma_chip_data tegra20_dma_chip_data = {
+static const struct tegra_dma_chip_data tegra20_dma_chip_data = {
        .nr_channels            = 16,
        .max_dma_count          = 1024UL * 64,
 };
 
 #if defined(CONFIG_OF)
 /* Tegra30 specific DMA controller information */
-static struct tegra_dma_chip_data tegra30_dma_chip_data = {
+static const struct tegra_dma_chip_data tegra30_dma_chip_data = {
        .nr_channels            = 32,
        .max_dma_count          = 1024UL * 64,
 };
@@ -1204,7 +1204,7 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev)
        struct tegra_dma *tdma;
        int ret;
        int i;
-       struct tegra_dma_chip_data *cdata = NULL;
+       const struct tegra_dma_chip_data *cdata = NULL;
 
        if (pdev->dev.of_node) {
                const struct of_device_id *match;