On 09/19/2013 11:44 PM, Russell King wrote:
> Replace the following sequence:
> 
>       dma_set_mask(dev, mask);
>       dma_set_coherent_mask(dev, mask);
> 
> with a call to the new helper dma_set_mask_and_coherent().
> 
> Signed-off-by: Russell King <[email protected]>

Acked-by: Hans Verkuil <[email protected]>

Regards,

        Hans

> ---
>  drivers/staging/media/dt3155v4l/dt3155v4l.c |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/media/dt3155v4l/dt3155v4l.c 
> b/drivers/staging/media/dt3155v4l/dt3155v4l.c
> index 90d6ac4..081407b 100644
> --- a/drivers/staging/media/dt3155v4l/dt3155v4l.c
> +++ b/drivers/staging/media/dt3155v4l/dt3155v4l.c
> @@ -901,10 +901,7 @@ dt3155_probe(struct pci_dev *pdev, const struct 
> pci_device_id *id)
>       int err;
>       struct dt3155_priv *pd;
>  
> -     err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
> -     if (err)
> -             return -ENODEV;
> -     err = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
> +     err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
>       if (err)
>               return -ENODEV;
>       pd = kzalloc(sizeof(*pd), GFP_KERNEL);
> 


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit 
http://communities.intel.com/community/wired

Reply via email to