[PATCH 5/6] mx31moboard: camera support

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Oct 16 14:35:42 EDT 2009


On Thu, Oct 15, 2009 at 11:42:59AM +0200, Valentin Longchamp wrote:
> +	buf = dma_alloc_coherent(NULL, buf_size, &dma_handle, GFP_KERNEL);
> +	if (!buf) {
> +		pr_err("%s: cannot allocate camera buffer-memory\n", __func__);
> +		return -ENOMEM;
> +	}
> +
> +	memset(buf, 0, buf_size);

No need to memset memory returned from dma_alloc_coherent.



More information about the linux-arm-kernel mailing list