lkml.org 
[lkml]   [2012]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH V3 06/12] dmaengine/dw_dmac: Use dev_get_platdata() instead of accessing dev directly
    Date
    Use already defined function dev_get_platdata() instead of accessing
    pdev->dev.data.

    Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
    ---
    drivers/dma/dw_dmac.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
    index 1577394..f3aecb3 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;

    --
    1.7.8.110.g4cb5d


    \
     
     \ /
      Last update: 2012-02-01 11:55    [W:0.019 / U:0.468 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site