platform.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) platform.c (08d62f58aa2587132a930afbe8664379b430e2dd)
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.

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

197 if (err)
198 return err;
199
200 pdata = dev_get_platdata(dev);
201 if (!pdata)
202 pdata = dw_dma_parse_dt(pdev);
203
204 chip->dev = dev;
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.

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

197 if (err)
198 return err;
199
200 pdata = dev_get_platdata(dev);
201 if (!pdata)
202 pdata = dw_dma_parse_dt(pdev);
203
204 chip->dev = dev;
205 chip->id = pdev->id;
205 chip->pdata = pdata;
206
207 chip->clk = devm_clk_get(chip->dev, "hclk");
208 if (IS_ERR(chip->clk))
209 return PTR_ERR(chip->clk);
210 err = clk_prepare_enable(chip->clk);
211 if (err)
212 return err;

--- 133 unchanged lines hidden ---
206 chip->pdata = pdata;
207
208 chip->clk = devm_clk_get(chip->dev, "hclk");
209 if (IS_ERR(chip->clk))
210 return PTR_ERR(chip->clk);
211 err = clk_prepare_enable(chip->clk);
212 if (err)
213 return err;

--- 133 unchanged lines hidden ---