powerpc: Add proper reference to dma_mask
Stephen Rothwell
sfr at canb.auug.org.au
Tue Jul 8 13:54:26 EST 2008
Hi Vitaly,
On Tue, 8 Jul 2008 03:12:56 +0400 Vitaly Bordug <vitb at kernel.crashing.org> wrote:
>
> +++ b/arch/powerpc/kernel/of_platform.c
> @@ -76,6 +76,9 @@ struct of_device* of_platform_device_create(struct device_node *np,
> return NULL;
>
> dev->dma_mask = 0xffffffffUL;
> + dev->dev.dma_mask = &dev->dma_mask;
That is done in of_device_alloc which is called just above.
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080708/19fd55e7/attachment.pgp>
More information about the Linuxppc-dev
mailing list