Re: [PATCH 05/31] Constify struct dma_map_ops for 2.6.32 v1

From: Stephen Rothwell
Date: Fri Dec 04 2009 - 21:10:27 EST


Hi Emese,

On Sat, 05 Dec 2009 03:00:25 +0100 Emese Revfy <re.emese@xxxxxxxxx> wrote:
>
> Ok, I made the changes, I also removed the vio_cmo_set_dma_ops function
> because I think it is now unnecessary.

It is necessary because vio_dma_mapping_ops is only defined when
CONFIG_PPC_SMLPAR is set, but that function was called from unconditional
code (and there was a trivial version for when CONFIG_PPC_SMLPAR was not
set) i.e. we only want the dma_ops set if we were built with
CONFIG_PPC_SMLPAR.

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature