k3dma.c (e3c55d406bd8df1a878546002c93db90c42be10c) k3dma.c (174b537ac2b8fe1bac31039185b80f873716c5a1)
1/*
2 * Copyright (c) 2013 Linaro Ltd.
3 * Copyright (c) 2013 Hisilicon Limited.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */

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

688 d->clk = devm_clk_get(&op->dev, NULL);
689 if (IS_ERR(d->clk)) {
690 dev_err(&op->dev, "no dma clk\n");
691 return PTR_ERR(d->clk);
692 }
693
694 irq = platform_get_irq(op, 0);
695 ret = devm_request_irq(&op->dev, irq,
1/*
2 * Copyright (c) 2013 Linaro Ltd.
3 * Copyright (c) 2013 Hisilicon Limited.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */

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

688 d->clk = devm_clk_get(&op->dev, NULL);
689 if (IS_ERR(d->clk)) {
690 dev_err(&op->dev, "no dma clk\n");
691 return PTR_ERR(d->clk);
692 }
693
694 irq = platform_get_irq(op, 0);
695 ret = devm_request_irq(&op->dev, irq,
696 k3_dma_int_handler, IRQF_DISABLED, DRIVER_NAME, d);
696 k3_dma_int_handler, 0, DRIVER_NAME, d);
697 if (ret)
698 return ret;
699
700 /* init phy channel */
701 d->phy = devm_kzalloc(&op->dev,
702 d->dma_channels * sizeof(struct k3_dma_phy), GFP_KERNEL);
703 if (d->phy == NULL)
704 return -ENOMEM;

--- 133 unchanged lines hidden ---
697 if (ret)
698 return ret;
699
700 /* init phy channel */
701 d->phy = devm_kzalloc(&op->dev,
702 d->dma_channels * sizeof(struct k3_dma_phy), GFP_KERNEL);
703 if (d->phy == NULL)
704 return -ENOMEM;

--- 133 unchanged lines hidden ---