Thread (4 messages) flat view 4 messages, 3 authors, 2008-07-08

Re: powerpc: Add proper reference to dma_mask

From: Stephen Rothwell <hidden>
Date: 2008-07-08 03:54:34

Hi Vitaly,

On Tue, 8 Jul 2008 03:12:56 +0400 Vitaly Bordug [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+++ 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@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help