pci.c (ebb7fe2100e8d181c7c3911801444965384ba147) | pci.c (08d62f58aa2587132a930afbe8664379b430e2dd) |
---|---|
1/* 2 * PCI driver for the Synopsys DesignWare DMA Controller 3 * 4 * Copyright (C) 2013 Intel Corporation 5 * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 33 unchanged lines hidden (view full) --- 42 if (ret) 43 return ret; 44 45 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); 46 if (!chip) 47 return -ENOMEM; 48 49 chip->dev = &pdev->dev; | 1/* 2 * PCI driver for the Synopsys DesignWare DMA Controller 3 * 4 * Copyright (C) 2013 Intel Corporation 5 * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 33 unchanged lines hidden (view full) --- 42 if (ret) 43 return ret; 44 45 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); 46 if (!chip) 47 return -ENOMEM; 48 49 chip->dev = &pdev->dev; |
50 chip->id = pdev->devfn; |
|
50 chip->regs = pcim_iomap_table(pdev)[0]; 51 chip->irq = pdev->irq; 52 chip->pdata = pdata; 53 54 ret = dw_dma_probe(chip); 55 if (ret) 56 return ret; 57 --- 76 unchanged lines hidden --- | 51 chip->regs = pcim_iomap_table(pdev)[0]; 52 chip->irq = pdev->irq; 53 chip->pdata = pdata; 54 55 ret = dw_dma_probe(chip); 56 if (ret) 57 return ret; 58 --- 76 unchanged lines hidden --- |