[PATCH 4/4] POWERPC: Merge 32 and 64-bit dma code
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue Sep 9 20:54:42 EST 2008
On Tue, 2008-09-09 at 00:03 +0200, Christoph Hellwig wrote:
> > - if (unlikely(dev == NULL || dev->archdata.dma_ops == NULL))
> > +
> > + if (unlikely(dev == NULL) || dev->archdata.dma_ops == NULL) {
> > +#ifdef CONFIG_PPC64
> > return NULL;
> > +#else
> > + /* Use default on 32-bit if dma_ops is not set up */
> > + return &dma_direct_ops;
> > +#endif
> > + }
> > +
>
> This is okay for the transition, but I think long-term it should
> be setup for all busses.
Agreed.
Ben.
More information about the Linuxppc-dev
mailing list