dmaengine/dw_dmac: Use dev_get_platdata() instead of accessing dev directly
authorViresh Kumar <viresh.kumar@st.com>
Wed, 1 Feb 2012 10:42:22 +0000 (16:12 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 22 Feb 2012 12:45:38 +0000 (18:15 +0530)
Use already defined function dev_get_platdata() instead of accessing
pdev->dev.data.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/dw_dmac.c

index 1577394237346ac763da5e6281a1465af6dda2ae..f3aecb3c0343004ec56e9072d74f5e63717cdff3 100644 (file)
@@ -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;