[PATCH 2/3] powerpc: implement arch_setup_pdev_archdata

2011-06-22 Thread Kumar Gala
We have a long standing issues with platform devices not have a valid dma_mask pointer. This hasn't been an issue to date as no platform device has tried to set its dma_mask value to a non-default value. Signed-off-by: Kumar Gala --- arch/powerpc/include/asm/platform_device.h | 17 +++

Re: [PATCH 2/3] powerpc: implement arch_setup_pdev_archdata

2010-08-05 Thread Kumar Gala
On Aug 5, 2010, at 10:44 AM, Stephen Rothwell wrote: > Hi Kumar, > > On Thu, 5 Aug 2010 10:15:46 -0500 Kumar Gala > wrote: >> >> +static inline void arch_setup_pdev_archdata(struct platform_device *pdev) >> +{ >> +pdev->dev.dma_mask = &pdev->archdata.dma_mask; >> + >> +return; >> +}

Re: [PATCH 2/3] powerpc: implement arch_setup_pdev_archdata

2010-08-05 Thread Stephen Rothwell
Hi Kumar, On Thu, 5 Aug 2010 10:15:46 -0500 Kumar Gala wrote: > > +static inline void arch_setup_pdev_archdata(struct platform_device *pdev) > +{ > + pdev->dev.dma_mask = &pdev->archdata.dma_mask; > + > + return; > +} The blank line and "return;" don't add anything. -- Cheers, Stephen

[PATCH 2/3] powerpc: implement arch_setup_pdev_archdata

2010-08-05 Thread Kumar Gala
We have a long standing issues with platform devices not have a valid dma_mask pointer. This hasn't been an issue to date as no platform device has tried to set its dma_mask value to a non-default value. Signed-off-by: Kumar Gala --- arch/powerpc/include/asm/platform_device.h | 16 +++