diff options
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pch_dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c index 6abe5ac3bd5e..a6d0e3dbed07 100644 --- a/drivers/dma/pch_dma.c +++ b/drivers/dma/pch_dma.c | |||
@@ -872,8 +872,7 @@ static int __devinit pch_dma_probe(struct pci_dev *pdev, | |||
872 | int i; | 872 | int i; |
873 | 873 | ||
874 | nr_channels = id->driver_data; | 874 | nr_channels = id->driver_data; |
875 | pd = kzalloc(sizeof(struct pch_dma)+ | 875 | pd = kzalloc(sizeof(*pd), GFP_KERNEL); |
876 | sizeof(struct pch_dma_chan) * nr_channels, GFP_KERNEL); | ||
877 | if (!pd) | 876 | if (!pd) |
878 | return -ENOMEM; | 877 | return -ENOMEM; |
879 | 878 | ||