diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 1577394237346ac763da5e6281a1465af6dda2ae..f3aecb3c0343004ec56e9072d74f5e63717cdff3 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -1369,7 +1369,7 @@ static int __init dw_probe(struct platform_device *pdev) int err; int i; - pdata = pdev->dev.platform_data; + pdata = dev_get_platdata(&pdev->dev); if (!pdata || pdata->nr_channels > DW_DMA_MAX_NR_CHANNELS) return -EINVAL;